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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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/app/mash/mash_runner.cc ('k') | chrome/browser/chrome_content_browser_client.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) 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/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1369 1369
1370 void ChromeBrowserMainParts::ServiceManagerConnectionStarted( 1370 void ChromeBrowserMainParts::ServiceManagerConnectionStarted(
1371 content::ServiceManagerConnection* connection) { 1371 content::ServiceManagerConnection* connection) {
1372 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) 1372 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i)
1373 chrome_extra_parts_[i]->ServiceManagerConnectionStarted(connection); 1373 chrome_extra_parts_[i]->ServiceManagerConnectionStarted(connection);
1374 } 1374 }
1375 1375
1376 void ChromeBrowserMainParts::PreMainMessageLoopRun() { 1376 void ChromeBrowserMainParts::PreMainMessageLoopRun() {
1377 #if defined(USE_AURA) 1377 #if defined(USE_AURA)
1378 if (content::ServiceManagerConnection::GetForProcess() && 1378 if (content::ServiceManagerConnection::GetForProcess() &&
1379 shell::ShellIsRemote()) { 1379 service_manager::ServiceManagerIsRemote()) {
1380 content::ServiceManagerConnection::GetForProcess()-> 1380 content::ServiceManagerConnection::GetForProcess()->
1381 SetConnectionLostClosure(base::Bind(&chrome::SessionEnding)); 1381 SetConnectionLostClosure(base::Bind(&chrome::SessionEnding));
1382 } 1382 }
1383 #endif 1383 #endif
1384 TRACE_EVENT0("startup", "ChromeBrowserMainParts::PreMainMessageLoopRun"); 1384 TRACE_EVENT0("startup", "ChromeBrowserMainParts::PreMainMessageLoopRun");
1385 1385
1386 result_code_ = PreMainMessageLoopRunImpl(); 1386 result_code_ = PreMainMessageLoopRunImpl();
1387 1387
1388 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) 1388 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i)
1389 chrome_extra_parts_[i]->PreMainMessageLoopRun(); 1389 chrome_extra_parts_[i]->PreMainMessageLoopRun();
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
2228 chromeos::CrosSettings::Shutdown(); 2228 chromeos::CrosSettings::Shutdown();
2229 #endif // defined(OS_CHROMEOS) 2229 #endif // defined(OS_CHROMEOS)
2230 #endif // defined(OS_ANDROID) 2230 #endif // defined(OS_ANDROID)
2231 } 2231 }
2232 2232
2233 // Public members: 2233 // Public members:
2234 2234
2235 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 2235 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
2236 chrome_extra_parts_.push_back(parts); 2236 chrome_extra_parts_.push_back(parts);
2237 } 2237 }
OLDNEW
« no previous file with comments | « chrome/app/mash/mash_runner.cc ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698