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

Side by Side Diff: chrome/browser/media_gallery/media_file_system_registry.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // MediaFileSystemRegistry implementation. 5 // MediaFileSystemRegistry implementation.
6 6
7 #include "chrome/browser/media_gallery/media_file_system_registry.h" 7 #include "chrome/browser/media_gallery/media_file_system_registry.h"
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/json/json_writer.h" 16 #include "base/json/json_writer.h"
17 #include "base/path_service.h" 17 #include "base/path_service.h"
18 #include "base/prefs/pref_service.h"
18 #include "base/stl_util.h" 19 #include "base/stl_util.h"
19 #include "base/string_util.h" 20 #include "base/string_util.h"
20 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
21 #include "base/system_monitor/system_monitor.h" 22 #include "base/system_monitor/system_monitor.h"
22 #include "base/utf_string_conversions.h" 23 #include "base/utf_string_conversions.h"
23 #include "base/values.h" 24 #include "base/values.h"
24 #include "chrome/browser/extensions/extension_service.h" 25 #include "chrome/browser/extensions/extension_service.h"
25 #include "chrome/browser/extensions/extension_system.h" 26 #include "chrome/browser/extensions/extension_system.h"
26 #include "chrome/browser/media_gallery/media_file_system_context.h" 27 #include "chrome/browser/media_gallery/media_file_system_context.h"
27 #include "chrome/browser/media_gallery/media_galleries_preferences_factory.h" 28 #include "chrome/browser/media_gallery/media_galleries_preferences_factory.h"
28 #include "chrome/browser/media_gallery/scoped_mtp_device_map_entry.h" 29 #include "chrome/browser/media_gallery/scoped_mtp_device_map_entry.h"
29 #include "chrome/browser/prefs/pref_service.h"
30 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/browser/system_monitor/media_storage_util.h" 31 #include "chrome/browser/system_monitor/media_storage_util.h"
32 #include "chrome/browser/system_monitor/removable_storage_notifications.h" 32 #include "chrome/browser/system_monitor/removable_storage_notifications.h"
33 #include "chrome/common/chrome_notification_types.h" 33 #include "chrome/common/chrome_notification_types.h"
34 #include "chrome/common/chrome_paths.h" 34 #include "chrome/common/chrome_paths.h"
35 #include "chrome/common/chrome_switches.h" 35 #include "chrome/common/chrome_switches.h"
36 #include "chrome/common/extensions/extension.h" 36 #include "chrome/common/extensions/extension.h"
37 #include "chrome/common/extensions/extension_constants.h" 37 #include "chrome/common/extensions/extension_constants.h"
38 #include "chrome/common/extensions/extension_set.h" 38 #include "chrome/common/extensions/extension_set.h"
39 #include "chrome/common/pref_names.h" 39 #include "chrome/common/pref_names.h"
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 808
809 PrefChangeRegistrarMap::iterator pref_it = 809 PrefChangeRegistrarMap::iterator pref_it =
810 pref_change_registrar_map_.find(profile); 810 pref_change_registrar_map_.find(profile);
811 DCHECK(pref_it != pref_change_registrar_map_.end()); 811 DCHECK(pref_it != pref_change_registrar_map_.end());
812 delete pref_it->second; 812 delete pref_it->second;
813 pref_change_registrar_map_.erase(pref_it); 813 pref_change_registrar_map_.erase(pref_it);
814 } 814 }
815 } 815 }
816 816
817 } // namespace chrome 817 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/media/media_stream_devices_controller.cc ('k') | chrome/browser/media_gallery/media_galleries_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698