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

Side by Side Diff: chrome/browser/browser_process_impl.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
« no previous file with comments | « chrome/browser/browser_encoding_browsertest.cc ('k') | chrome/browser/browser_shutdown.cc » ('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) 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/browser_process_impl.h" 5 #include "chrome/browser/browser_process_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
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/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/debug/alias.h" 15 #include "base/debug/alias.h"
16 #include "base/file_util.h" 16 #include "base/file_util.h"
17 #include "base/path_service.h" 17 #include "base/path_service.h"
18 #include "base/prefs/json_pref_store.h" 18 #include "base/prefs/json_pref_store.h"
19 #include "base/prefs/pref_registry_simple.h"
20 #include "base/prefs/pref_service.h"
19 #include "base/synchronization/waitable_event.h" 21 #include "base/synchronization/waitable_event.h"
20 #include "base/threading/thread.h" 22 #include "base/threading/thread.h"
21 #include "base/threading/thread_restrictions.h" 23 #include "base/threading/thread_restrictions.h"
22 #include "chrome/browser/automation/automation_provider_list.h" 24 #include "chrome/browser/automation/automation_provider_list.h"
23 #include "chrome/browser/background/background_mode_manager.h" 25 #include "chrome/browser/background/background_mode_manager.h"
24 #include "chrome/browser/chrome_browser_main.h" 26 #include "chrome/browser/chrome_browser_main.h"
25 #include "chrome/browser/chrome_content_browser_client.h" 27 #include "chrome/browser/chrome_content_browser_client.h"
26 #include "chrome/browser/component_updater/component_updater_configurator.h" 28 #include "chrome/browser/component_updater/component_updater_configurator.h"
27 #include "chrome/browser/component_updater/component_updater_service.h" 29 #include "chrome/browser/component_updater/component_updater_service.h"
28 #include "chrome/browser/defaults.h" 30 #include "chrome/browser/defaults.h"
(...skipping 15 matching lines...) Expand all
44 #include "chrome/browser/metrics/variations/variations_service.h" 46 #include "chrome/browser/metrics/variations/variations_service.h"
45 #include "chrome/browser/net/chrome_net_log.h" 47 #include "chrome/browser/net/chrome_net_log.h"
46 #include "chrome/browser/net/crl_set_fetcher.h" 48 #include "chrome/browser/net/crl_set_fetcher.h"
47 #include "chrome/browser/net/sdch_dictionary_fetcher.h" 49 #include "chrome/browser/net/sdch_dictionary_fetcher.h"
48 #include "chrome/browser/notifications/notification_ui_manager.h" 50 #include "chrome/browser/notifications/notification_ui_manager.h"
49 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" 51 #include "chrome/browser/plugins/chrome_plugin_service_filter.h"
50 #include "chrome/browser/plugins/plugin_finder.h" 52 #include "chrome/browser/plugins/plugin_finder.h"
51 #include "chrome/browser/policy/policy_service.h" 53 #include "chrome/browser/policy/policy_service.h"
52 #include "chrome/browser/prefs/browser_prefs.h" 54 #include "chrome/browser/prefs/browser_prefs.h"
53 #include "chrome/browser/prefs/chrome_pref_service_factory.h" 55 #include "chrome/browser/prefs/chrome_pref_service_factory.h"
54 #include "chrome/browser/prefs/pref_registry_simple.h"
55 #include "chrome/browser/prefs/pref_service.h"
56 #include "chrome/browser/prerender/prerender_tracker.h" 56 #include "chrome/browser/prerender/prerender_tracker.h"
57 #include "chrome/browser/printing/background_printing_manager.h" 57 #include "chrome/browser/printing/background_printing_manager.h"
58 #include "chrome/browser/printing/print_job_manager.h" 58 #include "chrome/browser/printing/print_job_manager.h"
59 #include "chrome/browser/printing/print_preview_dialog_controller.h" 59 #include "chrome/browser/printing/print_preview_dialog_controller.h"
60 #include "chrome/browser/profiles/profile_manager.h" 60 #include "chrome/browser/profiles/profile_manager.h"
61 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h" 61 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h"
62 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 62 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
63 #include "chrome/browser/shell_integration.h" 63 #include "chrome/browser/shell_integration.h"
64 #include "chrome/browser/status_icons/status_tray.h" 64 #include "chrome/browser/status_icons/status_tray.h"
65 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h" 65 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h"
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 } 1031 }
1032 1032
1033 void BrowserProcessImpl::OnAutoupdateTimer() { 1033 void BrowserProcessImpl::OnAutoupdateTimer() {
1034 if (CanAutorestartForUpdate()) { 1034 if (CanAutorestartForUpdate()) {
1035 DLOG(WARNING) << "Detected update. Restarting browser."; 1035 DLOG(WARNING) << "Detected update. Restarting browser.";
1036 RestartBackgroundInstance(); 1036 RestartBackgroundInstance();
1037 } 1037 }
1038 } 1038 }
1039 1039
1040 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 1040 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/browser/browser_encoding_browsertest.cc ('k') | chrome/browser/browser_shutdown.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698