| 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_android.h" | 5 #include "chrome/browser/chrome_browser_main_android.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 base::TimeDelta::FromMinutes(1)); | 96 base::TimeDelta::FromMinutes(1)); |
| 97 } | 97 } |
| 98 | 98 |
| 99 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { | 99 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { |
| 100 TRACE_EVENT0("startup", | 100 TRACE_EVENT0("startup", |
| 101 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization") | 101 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization") |
| 102 net::NetworkChangeNotifier::SetFactory( | 102 net::NetworkChangeNotifier::SetFactory( |
| 103 new net::NetworkChangeNotifierFactoryAndroid()); | 103 new net::NetworkChangeNotifierFactoryAndroid()); |
| 104 | 104 |
| 105 content::Compositor::Initialize(); | 105 content::Compositor::Initialize(); |
| 106 LOG(ERROR) << "bshe compositor initialized"; |
| 106 | 107 |
| 107 // Chrome on Android does not use default MessageLoop. It has its own | 108 // Chrome on Android does not use default MessageLoop. It has its own |
| 108 // Android specific MessageLoop. | 109 // Android specific MessageLoop. |
| 109 DCHECK(!main_message_loop_.get()); | 110 DCHECK(!main_message_loop_.get()); |
| 110 | 111 |
| 111 // Create and start the MessageLoop. | 112 // Create and start the MessageLoop. |
| 112 // This is a critical point in the startup process. | 113 // This is a critical point in the startup process. |
| 113 { | 114 { |
| 114 TRACE_EVENT0("startup", | 115 TRACE_EVENT0("startup", |
| 115 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:CreateUiMsgLoop"); | 116 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:CreateUiMsgLoop"); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 129 ChromeBrowserMainParts::PostBrowserStart(); | 130 ChromeBrowserMainParts::PostBrowserStart(); |
| 130 | 131 |
| 131 content::BrowserThread::GetBlockingPool()->PostDelayedTask(FROM_HERE, | 132 content::BrowserThread::GetBlockingPool()->PostDelayedTask(FROM_HERE, |
| 132 base::Bind(&SeccompSupportDetector::StartDetection), | 133 base::Bind(&SeccompSupportDetector::StartDetection), |
| 133 base::TimeDelta::FromMinutes(1)); | 134 base::TimeDelta::FromMinutes(1)); |
| 134 } | 135 } |
| 135 | 136 |
| 136 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { | 137 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { |
| 137 NOTREACHED(); | 138 NOTREACHED(); |
| 138 } | 139 } |
| OLD | NEW |