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

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

Issue 7685009: Revert "Modifying prefetch to account for multi-profile." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« no previous file with comments | « chrome/browser/net/predictor_unittest.cc ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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"
8 #include "chrome/browser/autofill/autofill_manager.h" 8 #include "chrome/browser/autofill/autofill_manager.h"
9 #include "chrome/browser/background/background_contents_service.h" 9 #include "chrome/browser/background/background_contents_service.h"
10 #include "chrome/browser/background/background_mode_manager.h" 10 #include "chrome/browser/background/background_mode_manager.h"
11 #include "chrome/browser/bookmarks/bookmark_model.h" 11 #include "chrome/browser/bookmarks/bookmark_model.h"
12 #include "chrome/browser/bookmarks/bookmark_utils.h" 12 #include "chrome/browser/bookmarks/bookmark_utils.h"
13 #include "chrome/browser/browser_shutdown.h" 13 #include "chrome/browser/browser_shutdown.h"
14 #include "chrome/browser/content_settings/host_content_settings_map.h" 14 #include "chrome/browser/content_settings/host_content_settings_map.h"
15 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 15 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
16 #include "chrome/browser/debugger/devtools_window.h" 16 #include "chrome/browser/debugger/devtools_window.h"
17 #include "chrome/browser/download/download_prefs.h" 17 #include "chrome/browser/download/download_prefs.h"
18 #include "chrome/browser/extensions/apps_promo.h" 18 #include "chrome/browser/extensions/apps_promo.h"
19 #include "chrome/browser/extensions/extension_prefs.h" 19 #include "chrome/browser/extensions/extension_prefs.h"
20 #include "chrome/browser/extensions/extension_web_ui.h" 20 #include "chrome/browser/extensions/extension_web_ui.h"
21 #include "chrome/browser/extensions/extensions_ui.h" 21 #include "chrome/browser/extensions/extensions_ui.h"
22 #include "chrome/browser/external_protocol/external_protocol_handler.h" 22 #include "chrome/browser/external_protocol/external_protocol_handler.h"
23 #include "chrome/browser/geolocation/geolocation_prefs.h" 23 #include "chrome/browser/geolocation/geolocation_prefs.h"
24 #include "chrome/browser/google/google_url_tracker.h" 24 #include "chrome/browser/google/google_url_tracker.h"
25 #include "chrome/browser/instant/instant_controller.h" 25 #include "chrome/browser/instant/instant_controller.h"
26 #include "chrome/browser/intranet_redirect_detector.h" 26 #include "chrome/browser/intranet_redirect_detector.h"
27 #include "chrome/browser/metrics/metrics_log.h" 27 #include "chrome/browser/metrics/metrics_log.h"
28 #include "chrome/browser/metrics/metrics_service.h" 28 #include "chrome/browser/metrics/metrics_service.h"
29 #include "chrome/browser/net/net_pref_observer.h" 29 #include "chrome/browser/net/net_pref_observer.h"
30 #include "chrome/browser/net/predictor.h" 30 #include "chrome/browser/net/predictor_api.h"
31 #include "chrome/browser/net/pref_proxy_config_service.h" 31 #include "chrome/browser/net/pref_proxy_config_service.h"
32 #include "chrome/browser/net/ssl_config_service_manager.h" 32 #include "chrome/browser/net/ssl_config_service_manager.h"
33 #include "chrome/browser/notifications/desktop_notification_service.h" 33 #include "chrome/browser/notifications/desktop_notification_service.h"
34 #include "chrome/browser/notifications/notification_ui_manager.h" 34 #include "chrome/browser/notifications/notification_ui_manager.h"
35 #include "chrome/browser/page_info_model.h" 35 #include "chrome/browser/page_info_model.h"
36 #include "chrome/browser/password_manager/password_manager.h" 36 #include "chrome/browser/password_manager/password_manager.h"
37 #include "chrome/browser/plugin_prefs.h" 37 #include "chrome/browser/plugin_prefs.h"
38 #include "chrome/browser/policy/cloud_policy_subsystem.h" 38 #include "chrome/browser/policy/cloud_policy_subsystem.h"
39 #include "chrome/browser/prefs/incognito_mode_prefs.h" 39 #include "chrome/browser/prefs/incognito_mode_prefs.h"
40 #include "chrome/browser/prefs/session_startup_pref.h" 40 #include "chrome/browser/prefs/session_startup_pref.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 void RegisterUserPrefs(PrefService* user_prefs) { 140 void RegisterUserPrefs(PrefService* user_prefs) {
141 // User prefs 141 // User prefs
142 AppsPromo::RegisterUserPrefs(user_prefs); 142 AppsPromo::RegisterUserPrefs(user_prefs);
143 AutofillManager::RegisterUserPrefs(user_prefs); 143 AutofillManager::RegisterUserPrefs(user_prefs);
144 SessionStartupPref::RegisterUserPrefs(user_prefs); 144 SessionStartupPref::RegisterUserPrefs(user_prefs);
145 BookmarkModel::RegisterUserPrefs(user_prefs); 145 BookmarkModel::RegisterUserPrefs(user_prefs);
146 Browser::RegisterUserPrefs(user_prefs); 146 Browser::RegisterUserPrefs(user_prefs);
147 PasswordManager::RegisterUserPrefs(user_prefs); 147 PasswordManager::RegisterUserPrefs(user_prefs);
148 chrome_browser_net::Predictor::RegisterUserPrefs(user_prefs); 148 chrome_browser_net::RegisterUserPrefs(user_prefs);
149 DownloadPrefs::RegisterUserPrefs(user_prefs); 149 DownloadPrefs::RegisterUserPrefs(user_prefs);
150 bookmark_utils::RegisterUserPrefs(user_prefs); 150 bookmark_utils::RegisterUserPrefs(user_prefs);
151 TabContentsWrapper::RegisterUserPrefs(user_prefs); 151 TabContentsWrapper::RegisterUserPrefs(user_prefs);
152 TemplateURLPrepopulateData::RegisterUserPrefs(user_prefs); 152 TemplateURLPrepopulateData::RegisterUserPrefs(user_prefs);
153 ExtensionWebUI::RegisterUserPrefs(user_prefs); 153 ExtensionWebUI::RegisterUserPrefs(user_prefs);
154 ExtensionsUI::RegisterUserPrefs(user_prefs); 154 ExtensionsUI::RegisterUserPrefs(user_prefs);
155 IncognitoModePrefs::RegisterUserPrefs(user_prefs); 155 IncognitoModePrefs::RegisterUserPrefs(user_prefs);
156 NewTabUI::RegisterUserPrefs(user_prefs); 156 NewTabUI::RegisterUserPrefs(user_prefs);
157 PluginPrefs::RegisterPrefs(user_prefs); 157 PluginPrefs::RegisterPrefs(user_prefs);
158 PluginsUI::RegisterUserPrefs(user_prefs); 158 PluginsUI::RegisterUserPrefs(user_prefs);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 user_prefs->Set(prefs::kBrowserWindowPlacement, *(pref->GetValue())); 211 user_prefs->Set(prefs::kBrowserWindowPlacement, *(pref->GetValue()));
212 } 212 }
213 local_state->ClearPref(prefs::kBrowserWindowPlacement); 213 local_state->ClearPref(prefs::kBrowserWindowPlacement);
214 214
215 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, 215 local_state->SetInteger(prefs::kMultipleProfilePrefMigration,
216 current_version | WINDOWS_PREFS); 216 current_version | WINDOWS_PREFS);
217 } 217 }
218 } 218 }
219 219
220 } // namespace browser 220 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/net/predictor_unittest.cc ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698