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

Unified Diff: chrome/browser/storage_monitor/storage_monitor.h

Issue 16472007: Rename StorageMonitor Initialize function to EnsureInitialized for better understanding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comments Created 7 years, 6 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
Index: chrome/browser/storage_monitor/storage_monitor.h
diff --git a/chrome/browser/storage_monitor/storage_monitor.h b/chrome/browser/storage_monitor/storage_monitor.h
index dfed9e8cf3ac096ccd8051279da7880734549642..5661c80fb5e9252682528a16d2c4038105f2154a 100644
--- a/chrome/browser/storage_monitor/storage_monitor.h
+++ b/chrome/browser/storage_monitor/storage_monitor.h
@@ -72,14 +72,14 @@ class StorageMonitor {
// somewhat shorter than a process Singleton.
static StorageMonitor* GetInstance();
- // Initialize the storage monitor. The provided callback, if non-null,
- // will be called when initialization is complete. If initialization has
- // already completed, this callback will be invoked within the calling stack.
- // Before the callback is run, calls to |GetAllAvailableStorages| and
+ // Ensures that the storage monitor is initialized. The provided callback, If
+ // non-null, will be called when initialization is complete. If initialization
+ // has already completed, this callback will be invoked within the calling
+ // stack. Before the callback is run, calls to |GetAllAvailableStorages| and
// |GetStorageInfoForPath| may not return the correct results. In addition,
// registered observers will not be notified on device attachment/detachment.
// Should be invoked on the UI thread; callbacks will be run on the UI thread.
- void Initialize(base::Closure callback);
+ void EnsureInitialized(base::Closure callback);
// Return true if the storage monitor has already been initialized.
bool IsInitialized();
« no previous file with comments | « chrome/browser/media_galleries/media_galleries_dialog_controller.cc ('k') | chrome/browser/storage_monitor/storage_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698