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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "cc/base/switches.h" | 10 #include "cc/base/switches.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // Chrome on Android does not use default MessageLoop. It has its own | 63 // Chrome on Android does not use default MessageLoop. It has its own |
64 // Android specific MessageLoop. | 64 // Android specific MessageLoop. |
65 DCHECK(!main_message_loop_.get()); | 65 DCHECK(!main_message_loop_.get()); |
66 | 66 |
67 // Create and start the MessageLoop. | 67 // Create and start the MessageLoop. |
68 // This is a critical point in the startup process. | 68 // This is a critical point in the startup process. |
69 { | 69 { |
70 TRACE_EVENT0("startup", | 70 TRACE_EVENT0("startup", |
71 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:CreateUiMsgLoop"); | 71 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:CreateUiMsgLoop"); |
72 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); | 72 main_message_loop_.reset(new base::MessageLoop(base::MessageLoop::TYPE_UI)); |
73 } | 73 } |
74 | 74 |
75 { | 75 { |
76 TRACE_EVENT0("startup", | 76 TRACE_EVENT0("startup", |
77 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:StartUiMsgLoop"); | 77 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:StartUiMsgLoop"); |
78 MessageLoopForUI::current()->Start(); | 78 base::MessageLoopForUI::current()->Start(); |
79 } | 79 } |
80 | 80 |
81 CommandLine::ForCurrentProcess()->AppendSwitch( | 81 CommandLine::ForCurrentProcess()->AppendSwitch( |
82 cc::switches::kCompositeToMailbox); | 82 cc::switches::kCompositeToMailbox); |
83 | 83 |
84 ChromeBrowserMainParts::PreEarlyInitialization(); | 84 ChromeBrowserMainParts::PreEarlyInitialization(); |
85 } | 85 } |
86 | 86 |
87 int ChromeBrowserMainPartsAndroid::PreCreateThreads() { | 87 int ChromeBrowserMainPartsAndroid::PreCreateThreads() { |
88 TRACE_EVENT0("startup", "ChromeBrowserMainPartsAndroid::PreCreateThreads") | 88 TRACE_EVENT0("startup", "ChromeBrowserMainPartsAndroid::PreCreateThreads") |
(...skipping 14 matching lines...) Expand all Loading... |
103 NOTREACHED(); | 103 NOTREACHED(); |
104 } | 104 } |
105 | 105 |
106 void RecordBreakpadStatusUMA(MetricsService* metrics) { | 106 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
107 // TODO: crbug.com/139023 | 107 // TODO: crbug.com/139023 |
108 NOTIMPLEMENTED(); | 108 NOTIMPLEMENTED(); |
109 } | 109 } |
110 | 110 |
111 void WarnAboutMinimumSystemRequirements() { | 111 void WarnAboutMinimumSystemRequirements() { |
112 } | 112 } |
OLD | NEW |