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

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

Issue 2299613003: New Compositor and tab content
Patch Set: more clean up Created 4 years, 3 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
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_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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698