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

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 9836103: Fix most remaining WebUI link errors on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: atwilson's comments Created 8 years, 9 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 #include "chrome/browser/prefs/browser_prefs.h" 5 #include "chrome/browser/prefs/browser_prefs.h"
6 6
7 #include "chrome/browser/about_flags.h" 7 #include "chrome/browser/about_flags.h"
battre 2012/03/27 18:54:30 do you need to #ifdef this if you remove about_fla
Yaron 2012/03/27 19:06:52 Technically it's fine as the header is still inclu
8 #include "chrome/browser/autofill/autofill_manager.h" 8 #include "chrome/browser/autofill/autofill_manager.h"
9 #include "chrome/browser/background/background_mode_manager.h" 9 #include "chrome/browser/background/background_mode_manager.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
11 #include "chrome/browser/bookmarks/bookmark_utils.h" 11 #include "chrome/browser/bookmarks/bookmark_utils.h"
12 #include "chrome/browser/browser_shutdown.h" 12 #include "chrome/browser/browser_shutdown.h"
13 #include "chrome/browser/content_settings/host_content_settings_map.h" 13 #include "chrome/browser/content_settings/host_content_settings_map.h"
14 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 14 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
15 #include "chrome/browser/debugger/devtools_window.h" 15 #include "chrome/browser/debugger/devtools_window.h"
16 #include "chrome/browser/download/download_prefs.h" 16 #include "chrome/browser/download/download_prefs.h"
17 #include "chrome/browser/extensions/apps_promo.h" 17 #include "chrome/browser/extensions/apps_promo.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 namespace browser { 106 namespace browser {
107 107
108 void RegisterLocalState(PrefService* local_state) { 108 void RegisterLocalState(PrefService* local_state) {
109 // Prefs in Local State 109 // Prefs in Local State
110 local_state->RegisterIntegerPref(prefs::kMultipleProfilePrefMigration, 0); 110 local_state->RegisterIntegerPref(prefs::kMultipleProfilePrefMigration, 0);
111 111
112 AppsPromo::RegisterPrefs(local_state); 112 AppsPromo::RegisterPrefs(local_state);
113 browser_shutdown::RegisterPrefs(local_state); 113 browser_shutdown::RegisterPrefs(local_state);
114 ExternalProtocolHandler::RegisterPrefs(local_state); 114 ExternalProtocolHandler::RegisterPrefs(local_state);
115 FlagsUI::RegisterPrefs(local_state);
116 geolocation::RegisterPrefs(local_state); 115 geolocation::RegisterPrefs(local_state);
117 GoogleURLTracker::RegisterPrefs(local_state); 116 GoogleURLTracker::RegisterPrefs(local_state);
118 IntranetRedirectDetector::RegisterPrefs(local_state); 117 IntranetRedirectDetector::RegisterPrefs(local_state);
119 KeywordEditorController::RegisterPrefs(local_state); 118 KeywordEditorController::RegisterPrefs(local_state);
120 ManagedMode::RegisterPrefs(local_state); 119 ManagedMode::RegisterPrefs(local_state);
121 MetricsLog::RegisterPrefs(local_state); 120 MetricsLog::RegisterPrefs(local_state);
122 MetricsService::RegisterPrefs(local_state); 121 MetricsService::RegisterPrefs(local_state);
123 PrefProxyConfigTrackerImpl::RegisterPrefs(local_state); 122 PrefProxyConfigTrackerImpl::RegisterPrefs(local_state);
124 ProfileInfoCache::RegisterPrefs(local_state); 123 ProfileInfoCache::RegisterPrefs(local_state);
125 ProfileManager::RegisterPrefs(local_state); 124 ProfileManager::RegisterPrefs(local_state);
(...skipping 13 matching lines...) Expand all
139 SafeBrowsingService::RegisterPrefs(local_state); 138 SafeBrowsingService::RegisterPrefs(local_state);
140 #endif 139 #endif
141 140
142 #if defined(TOOLKIT_VIEWS) 141 #if defined(TOOLKIT_VIEWS)
143 BrowserView::RegisterBrowserViewPrefs(local_state); 142 BrowserView::RegisterBrowserViewPrefs(local_state);
144 #endif 143 #endif
145 144
146 #if !defined(OS_ANDROID) 145 #if !defined(OS_ANDROID)
147 BackgroundModeManager::RegisterPrefs(local_state); 146 BackgroundModeManager::RegisterPrefs(local_state);
148 Browser::RegisterPrefs(local_state); 147 Browser::RegisterPrefs(local_state);
148 FlagsUI::RegisterPrefs(local_state);
149 NewTabPageHandler::RegisterPrefs(local_state); 149 NewTabPageHandler::RegisterPrefs(local_state);
150 printing::PrintJobManager::RegisterPrefs(local_state); 150 printing::PrintJobManager::RegisterPrefs(local_state);
151 PromoResourceService::RegisterPrefs(local_state); 151 PromoResourceService::RegisterPrefs(local_state);
152 UpgradeDetector::RegisterPrefs(local_state); 152 UpgradeDetector::RegisterPrefs(local_state);
153 #endif 153 #endif
154 154
155 #if defined(OS_CHROMEOS) 155 #if defined(OS_CHROMEOS)
156 chromeos::AudioHandler::RegisterPrefs(local_state); 156 chromeos::AudioHandler::RegisterPrefs(local_state);
157 chromeos::language_prefs::RegisterPrefs(local_state); 157 chromeos::language_prefs::RegisterPrefs(local_state);
158 chromeos::NetworkMenuButton::RegisterPrefs(local_state); 158 chromeos::NetworkMenuButton::RegisterPrefs(local_state);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 283 }
284 local_state->ClearPref(prefs::kBrowserWindowPlacement); 284 local_state->ClearPref(prefs::kBrowserWindowPlacement);
285 285
286 current_version |= WINDOWS_PREFS; 286 current_version |= WINDOWS_PREFS;
287 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, 287 local_state->SetInteger(prefs::kMultipleProfilePrefMigration,
288 current_version); 288 current_version);
289 } 289 }
290 } 290 }
291 291
292 } // namespace browser 292 } // namespace browser
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/profile_sync_service.cc » ('j') | chrome/browser/ui/webui/history_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698