| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |