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

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

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 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/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 5e23b40e2026b43fb6c48e409a39d805073f284f..982aaeb2aa5c9a0f0b4f5e0278f870a58431c884 100644
--- a/chrome/browser/ui/webui/options/media_galleries_handler.cc
+++ b/chrome/browser/ui/webui/options/media_galleries_handler.cc
@@ -23,10 +23,6 @@
namespace options {
-using chrome::MediaGalleriesPreferences;
-using chrome::MediaGalleriesPrefInfoMap;
-using chrome::MediaGalleryPrefInfo;
-
MediaGalleriesHandler::MediaGalleriesHandler()
: weak_ptr_factory_(this) {
}
@@ -51,14 +47,14 @@ void MediaGalleriesHandler::GetLocalizedValues(DictionaryValue* values) {
}
void MediaGalleriesHandler::InitializePage() {
- chrome::StorageMonitor::GetInstance()->EnsureInitialized(
+ StorageMonitor::GetInstance()->EnsureInitialized(
base::Bind(&MediaGalleriesHandler::InitializeOnStorageMonitorInit,
weak_ptr_factory_.GetWeakPtr()));
}
void MediaGalleriesHandler::InitializeOnStorageMonitorInit() {
Profile* profile = Profile::FromWebUI(web_ui());
- if (!chrome::MediaGalleriesPreferences::APIHasBeenUsed(profile))
+ if (!MediaGalleriesPreferences::APIHasBeenUsed(profile))
return;
if (pref_change_registrar_.IsEmpty()) {
@@ -73,7 +69,7 @@ void MediaGalleriesHandler::InitializeOnStorageMonitorInit() {
}
void MediaGalleriesHandler::RegisterMessages() {
- chrome::StorageMonitor::GetInstance()->EnsureInitialized(
+ StorageMonitor::GetInstance()->EnsureInitialized(
base::Bind(&MediaGalleriesHandler::RegisterOnStorageMonitorInit,
weak_ptr_factory_.GetWeakPtr()));
}
@@ -90,9 +86,9 @@ void MediaGalleriesHandler::RegisterOnStorageMonitorInit() {
}
void MediaGalleriesHandler::OnGalleriesChanged() {
- DCHECK(chrome::StorageMonitor::GetInstance()->IsInitialized());
+ DCHECK(StorageMonitor::GetInstance()->IsInitialized());
Profile* profile = Profile::FromWebUI(web_ui());
- chrome::MediaGalleriesPreferences* preferences =
+ MediaGalleriesPreferences* preferences =
g_browser_process->media_file_system_registry()->GetPreferences(profile);
ListValue list;
@@ -138,8 +134,8 @@ void MediaGalleriesHandler::HandleForgetGallery(const base::ListValue* args) {
return;
}
- DCHECK(chrome::StorageMonitor::GetInstance()->IsInitialized());
- chrome::MediaGalleriesPreferences* preferences =
+ DCHECK(StorageMonitor::GetInstance()->IsInitialized());
+ MediaGalleriesPreferences* preferences =
g_browser_process->media_file_system_registry()->GetPreferences(
Profile::FromWebUI(web_ui()));
preferences->ForgetGalleryById(id);
@@ -148,8 +144,8 @@ void MediaGalleriesHandler::HandleForgetGallery(const base::ListValue* args) {
void MediaGalleriesHandler::FileSelected(const base::FilePath& path,
int index,
void* params) {
- DCHECK(chrome::StorageMonitor::GetInstance()->IsInitialized());
- chrome::MediaGalleriesPreferences* preferences =
+ DCHECK(StorageMonitor::GetInstance()->IsInitialized());
+ MediaGalleriesPreferences* preferences =
g_browser_process->media_file_system_registry()->GetPreferences(
Profile::FromWebUI(web_ui()));
preferences->AddGalleryByPath(path);
« no previous file with comments | « chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698