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

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

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 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
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/browsing_instance.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) 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 "base/waitable_event.h" 10 #include "base/waitable_event.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 private: 76 private:
77 // Each specialized thread has its own notification service. 77 // Each specialized thread has its own notification service.
78 // Note: We don't use scoped_ptr because the destructor runs on the wrong 78 // Note: We don't use scoped_ptr because the destructor runs on the wrong
79 // thread. 79 // thread.
80 NotificationService* notification_service_; 80 NotificationService* notification_service_;
81 }; 81 };
82 82
83 } // namespace 83 } // namespace
84 84
85 BrowserProcessImpl::BrowserProcessImpl(CommandLine& command_line) 85 BrowserProcessImpl::BrowserProcessImpl(const CommandLine& command_line)
86 : created_resource_dispatcher_host_(false), 86 : created_resource_dispatcher_host_(false),
87 created_metrics_service_(false), 87 created_metrics_service_(false),
88 created_io_thread_(false), 88 created_io_thread_(false),
89 created_file_thread_(false), 89 created_file_thread_(false),
90 created_db_thread_(false), 90 created_db_thread_(false),
91 created_profile_manager_(false), 91 created_profile_manager_(false),
92 created_local_state_(false), 92 created_local_state_(false),
93 created_icon_manager_(false), 93 created_icon_manager_(false),
94 initialized_broker_services_(false), 94 initialized_broker_services_(false),
95 created_debugger_wrapper_(false), 95 created_debugger_wrapper_(false),
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 new views::AcceleratorHandler); 354 new views::AcceleratorHandler);
355 accelerator_handler_.swap(accelerator_handler); 355 accelerator_handler_.swap(accelerator_handler);
356 } 356 }
357 357
358 void BrowserProcessImpl::CreateGoogleURLTracker() { 358 void BrowserProcessImpl::CreateGoogleURLTracker() {
359 DCHECK(google_url_tracker_.get() == NULL); 359 DCHECK(google_url_tracker_.get() == NULL);
360 scoped_ptr<GoogleURLTracker> google_url_tracker(new GoogleURLTracker); 360 scoped_ptr<GoogleURLTracker> google_url_tracker(new GoogleURLTracker);
361 google_url_tracker_.swap(google_url_tracker); 361 google_url_tracker_.swap(google_url_tracker);
362 } 362 }
363 363
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/browsing_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698