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

Side by Side Diff: chrome/browser/browser_process_impl.cc

Issue 10698111: browser: Move more files into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | chrome/browser/content_settings/content_settings_pref_provider_unittest.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/synchronization/waitable_event.h" 18 #include "base/synchronization/waitable_event.h"
19 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "base/threading/thread_restrictions.h" 20 #include "base/threading/thread_restrictions.h"
21 #include "chrome/browser/automation/automation_provider_list.h" 21 #include "chrome/browser/automation/automation_provider_list.h"
22 #include "chrome/browser/background/background_mode_manager.h" 22 #include "chrome/browser/background/background_mode_manager.h"
23 #include "chrome/browser/browser_trial.h" 23 #include "chrome/browser/browser_trial.h"
24 #include "chrome/browser/chrome_browser_main.h"
24 #include "chrome/browser/chrome_content_browser_client.h" 25 #include "chrome/browser/chrome_content_browser_client.h"
25 #include "chrome/browser/chrome_browser_main.h"
26 #include "chrome/browser/chrome_plugin_service_filter.h" 26 #include "chrome/browser/chrome_plugin_service_filter.h"
27 #include "chrome/browser/component_updater/component_updater_configurator.h" 27 #include "chrome/browser/component_updater/component_updater_configurator.h"
28 #include "chrome/browser/component_updater/component_updater_service.h" 28 #include "chrome/browser/component_updater/component_updater_service.h"
29 #include "chrome/browser/debugger/remote_debugging_server.h" 29 #include "chrome/browser/debugger/remote_debugging_server.h"
30 #include "chrome/browser/download/download_request_limiter.h" 30 #include "chrome/browser/download/download_request_limiter.h"
31 #include "chrome/browser/download/download_status_updater.h" 31 #include "chrome/browser/download/download_status_updater.h"
32 #include "chrome/browser/extensions/extension_event_router_forwarder.h" 32 #include "chrome/browser/extensions/extension_event_router_forwarder.h"
33 #include "chrome/browser/extensions/extension_tab_id_map.h" 33 #include "chrome/browser/extensions/extension_tab_id_map.h"
34 #include "chrome/browser/first_run/upgrade_util.h" 34 #include "chrome/browser/first_run/upgrade_util.h"
35 #include "chrome/browser/icon_manager.h" 35 #include "chrome/browser/icon_manager.h"
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 DCHECK(!created_local_state_ && local_state_.get() == NULL); 697 DCHECK(!created_local_state_ && local_state_.get() == NULL);
698 created_local_state_ = true; 698 created_local_state_ = true;
699 699
700 FilePath local_state_path; 700 FilePath local_state_path;
701 PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path); 701 PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path);
702 local_state_.reset( 702 local_state_.reset(
703 PrefService::CreatePrefService(local_state_path, policy_service(), NULL, 703 PrefService::CreatePrefService(local_state_path, policy_service(), NULL,
704 false)); 704 false));
705 705
706 // Initialize the prefs of the local state. 706 // Initialize the prefs of the local state.
707 browser::RegisterLocalState(local_state_.get()); 707 chrome::RegisterLocalState(local_state_.get());
708 708
709 pref_change_registrar_.Init(local_state_.get()); 709 pref_change_registrar_.Init(local_state_.get());
710 710
711 #if defined(ENABLE_PRINTING) 711 #if defined(ENABLE_PRINTING)
712 print_job_manager_->InitOnUIThread(local_state_.get()); 712 print_job_manager_->InitOnUIThread(local_state_.get());
713 #endif 713 #endif
714 714
715 // Initialize the notification for the default browser setting policy. 715 // Initialize the notification for the default browser setting policy.
716 local_state_->RegisterBooleanPref(prefs::kDefaultBrowserSettingEnabled, 716 local_state_->RegisterBooleanPref(prefs::kDefaultBrowserSettingEnabled,
717 false); 717 false);
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 } 924 }
925 925
926 void BrowserProcessImpl::OnAutoupdateTimer() { 926 void BrowserProcessImpl::OnAutoupdateTimer() {
927 if (CanAutorestartForUpdate()) { 927 if (CanAutorestartForUpdate()) {
928 DLOG(WARNING) << "Detected update. Restarting browser."; 928 DLOG(WARNING) << "Detected update. Restarting browser.";
929 RestartBackgroundInstance(); 929 RestartBackgroundInstance();
930 } 930 }
931 } 931 }
932 932
933 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 933 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/content_settings/content_settings_pref_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698