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())); |
} |