root/chrome/test/base/history_index_restore_observer.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. succeeded_
  2. OnCacheRestoreFinished

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/test/base/history_index_restore_observer.h"

HistoryIndexRestoreObserver::HistoryIndexRestoreObserver(
    const base::Closure& task)
    : task_(task),
      succeeded_(false) {
}

HistoryIndexRestoreObserver::~HistoryIndexRestoreObserver() {}

void HistoryIndexRestoreObserver::OnCacheRestoreFinished(bool success) {
  succeeded_ = success;
  task_.Run();
}

/* [<][>][^][v][top][bottom][index][help] */