Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1425)

Unified Diff: chrome/browser/extensions/state_store.cc

Issue 186013003: Persist browseraction properties across restarts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/state_store.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/browser/extensions/state_store.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698