| Index: chrome/browser/extensions/state_store.cc
|
| diff --git a/chrome/browser/extensions/state_store.cc b/chrome/browser/extensions/state_store.cc
|
| index a12dc514bbf295de4fc96959b66382560d59055a..c4fb85db7eaa177db37fd06ab5752311d87f3675 100644
|
| --- a/chrome/browser/extensions/state_store.cc
|
| +++ b/chrome/browser/extensions/state_store.cc
|
| @@ -39,6 +39,9 @@ class StateStore::DelayedTaskQueue {
|
| // Marks us ready, and invokes all pending tasks.
|
| void SetReady();
|
|
|
| + // Return whether or not the DelayedTaskQueue is |ready_|.
|
| + bool ready() const { return ready_; }
|
| +
|
| private:
|
| bool ready_;
|
| std::vector<base::Closure> pending_tasks_;
|
| @@ -124,6 +127,8 @@ void StateStore::RemoveExtensionValue(const std::string& extension_id,
|
| GetFullKey(extension_id, key)));
|
| }
|
|
|
| +bool StateStore::IsInitialized() const { return task_queue_->ready(); }
|
| +
|
| void StateStore::Observe(int type,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) {
|
|
|