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

Unified Diff: chrome/browser/ui/webui/options/media_galleries_handler.cc

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
« no previous file with comments | « chrome/browser/storage_monitor/storage_monitor_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/media_galleries_handler.cc
diff --git a/chrome/browser/ui/webui/options/media_galleries_handler.cc b/chrome/browser/ui/webui/options/media_galleries_handler.cc
index 90a93622ff116211656ce7a4e4fe5c4ebc2ce83b..dae1e77173539161dbf7573dedef441c321402c0 100644
--- a/chrome/browser/ui/webui/options/media_galleries_handler.cc
+++ b/chrome/browser/ui/webui/options/media_galleries_handler.cc
@@ -53,7 +53,7 @@ void MediaGalleriesHandler::GetLocalizedValues(DictionaryValue* values) {
}
void MediaGalleriesHandler::InitializePage() {
- chrome::StorageMonitor::GetInstance()->Initialize(
+ chrome::StorageMonitor::GetInstance()->EnsureInitialized(
base::Bind(&MediaGalleriesHandler::InitializeOnStorageMonitorInit,
weak_ptr_factory_.GetWeakPtr()));
}
@@ -75,7 +75,7 @@ void MediaGalleriesHandler::InitializeOnStorageMonitorInit() {
}
void MediaGalleriesHandler::RegisterMessages() {
- chrome::StorageMonitor::GetInstance()->Initialize(
+ chrome::StorageMonitor::GetInstance()->EnsureInitialized(
base::Bind(&MediaGalleriesHandler::RegisterOnStorageMonitorInit,
weak_ptr_factory_.GetWeakPtr()));
}
« no previous file with comments | « chrome/browser/storage_monitor/storage_monitor_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698