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

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

Issue 13009: Rollback (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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_process_impl.h ('k') | chrome/browser/profile_manager.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/thread.h" 9 #include "base/thread.h"
10 #include "chrome/browser/automation/automation_provider_list.h" 10 #include "chrome/browser/automation/automation_provider_list.h"
11 #include "chrome/browser/browser_trial.h" 11 #include "chrome/browser/browser_trial.h"
12 #include "chrome/browser/chrome_thread.h" 12 #include "chrome/browser/chrome_thread.h"
13 #include "chrome/browser/download/download_file.h" 13 #include "chrome/browser/download/download_file.h"
14 #include "chrome/browser/download/save_file_manager.h" 14 #include "chrome/browser/download/save_file_manager.h"
15 #include "chrome/browser/google_url_tracker.h" 15 #include "chrome/browser/google_url_tracker.h"
16 #include "chrome/browser/icon_manager.h" 16 #include "chrome/browser/icon_manager.h"
17 #include "chrome/browser/metrics_service.h" 17 #include "chrome/browser/metrics_service.h"
18 #include "chrome/browser/plugin_service.h" 18 #include "chrome/browser/plugin_service.h"
19 #include "chrome/browser/printing/print_job_manager.h" 19 #include "chrome/browser/printing/print_job_manager.h"
20 #include "chrome/browser/profile_manager.h" 20 #include "chrome/browser/profile_manager.h"
21 #include "chrome/browser/render_process_host.h" 21 #include "chrome/browser/render_process_host.h"
22 #include "chrome/browser/resource_dispatcher_host.h" 22 #include "chrome/browser/resource_dispatcher_host.h"
23 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 23 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
24 #include "chrome/browser/debugger/debugger_wrapper.h" 24 #include "chrome/browser/debugger/debugger_wrapper.h"
25 #include "chrome/browser/suspend_controller.h"
25 #include "chrome/common/chrome_paths.h" 26 #include "chrome/common/chrome_paths.h"
26 #include "chrome/common/chrome_switches.h" 27 #include "chrome/common/chrome_switches.h"
27 #include "chrome/common/clipboard_service.h" 28 #include "chrome/common/clipboard_service.h"
28 #include "chrome/common/l10n_util.h" 29 #include "chrome/common/l10n_util.h"
29 #include "chrome/common/notification_service.h" 30 #include "chrome/common/notification_service.h"
30 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
31 #include "chrome/common/pref_service.h" 32 #include "chrome/common/pref_service.h"
32 #include "chrome/views/accelerator_handler.h" 33 #include "chrome/views/accelerator_handler.h"
33 #include "chrome/views/view_storage.h" 34 #include "chrome/views/view_storage.h"
34 35
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 const double probability = 0.5; 121 const double probability = 0.5;
121 FieldTrial* trial(new FieldTrial(BrowserTrial::kMemoryModelFieldTrial, 122 FieldTrial* trial(new FieldTrial(BrowserTrial::kMemoryModelFieldTrial,
122 probability)); 123 probability));
123 DCHECK(FieldTrialList::Find(BrowserTrial::kMemoryModelFieldTrial) == trial); 124 DCHECK(FieldTrialList::Find(BrowserTrial::kMemoryModelFieldTrial) == trial);
124 if (trial->boolean_value()) 125 if (trial->boolean_value())
125 memory_model_ = HIGH_MEMORY_MODEL; 126 memory_model_ = HIGH_MEMORY_MODEL;
126 else 127 else
127 memory_model_ = MEDIUM_MEMORY_MODEL; 128 memory_model_ = MEDIUM_MEMORY_MODEL;
128 } 129 }
129 130
131 suspend_controller_ = new SuspendController();
132
130 shutdown_event_ = ::CreateEvent(NULL, TRUE, FALSE, NULL); 133 shutdown_event_ = ::CreateEvent(NULL, TRUE, FALSE, NULL);
131 } 134 }
132 135
133 BrowserProcessImpl::~BrowserProcessImpl() { 136 BrowserProcessImpl::~BrowserProcessImpl() {
134 // Delete the AutomationProviderList before NotificationService, 137 // Delete the AutomationProviderList before NotificationService,
135 // since it may try to unregister notifications 138 // since it may try to unregister notifications
136 // Both NotificationService and AutomationProvider are singleton instances in 139 // Both NotificationService and AutomationProvider are singleton instances in
137 // the BrowserProcess. Since AutomationProvider may have some active 140 // the BrowserProcess. Since AutomationProvider may have some active
138 // notification observers, it is essential that it gets destroyed before the 141 // notification observers, it is essential that it gets destroyed before the
139 // NotificationService. NotificationService won't be destroyed until after 142 // NotificationService. NotificationService won't be destroyed until after
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 new views::AcceleratorHandler); 356 new views::AcceleratorHandler);
354 accelerator_handler_.swap(accelerator_handler); 357 accelerator_handler_.swap(accelerator_handler);
355 } 358 }
356 359
357 void BrowserProcessImpl::CreateGoogleURLTracker() { 360 void BrowserProcessImpl::CreateGoogleURLTracker() {
358 DCHECK(google_url_tracker_.get() == NULL); 361 DCHECK(google_url_tracker_.get() == NULL);
359 scoped_ptr<GoogleURLTracker> google_url_tracker(new GoogleURLTracker); 362 scoped_ptr<GoogleURLTracker> google_url_tracker(new GoogleURLTracker);
360 google_url_tracker_.swap(google_url_tracker); 363 google_url_tracker_.swap(google_url_tracker);
361 } 364 }
362 365
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/profile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698