| 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/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "cc/base/switches.h" | 9 #include "cc/base/switches.h" |
| 10 #include "chrome/app/breakpad_linux.h" | 10 #include "chrome/app/breakpad_linux.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { | 53 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { |
| 54 net::NetworkChangeNotifier::SetFactory( | 54 net::NetworkChangeNotifier::SetFactory( |
| 55 new net::NetworkChangeNotifierFactoryAndroid()); | 55 new net::NetworkChangeNotifierFactoryAndroid()); |
| 56 | 56 |
| 57 content::Compositor::Initialize(); | 57 content::Compositor::Initialize(); |
| 58 | 58 |
| 59 // Chrome on Android does not use default MessageLoop. It has its own | 59 // Chrome on Android does not use default MessageLoop. It has its own |
| 60 // Android specific MessageLoop. | 60 // Android specific MessageLoop. |
| 61 DCHECK(!main_message_loop_.get()); | 61 DCHECK(!main_message_loop_.get()); |
| 62 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); | 62 main_message_loop_.reset(new base::MessageLoop(base::MessageLoop::TYPE_UI)); |
| 63 MessageLoopForUI::current()->Start(); | 63 base::MessageLoopForUI::current()->Start(); |
| 64 | 64 |
| 65 CommandLine::ForCurrentProcess()->AppendSwitch( | 65 CommandLine::ForCurrentProcess()->AppendSwitch( |
| 66 cc::switches::kCompositeToMailbox); | 66 cc::switches::kCompositeToMailbox); |
| 67 | 67 |
| 68 ChromeBrowserMainParts::PreEarlyInitialization(); | 68 ChromeBrowserMainParts::PreEarlyInitialization(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 int ChromeBrowserMainPartsAndroid::PreCreateThreads() { | 71 int ChromeBrowserMainPartsAndroid::PreCreateThreads() { |
| 72 // PreCreateThreads initializes ResourceBundle instance. | 72 // PreCreateThreads initializes ResourceBundle instance. |
| 73 const int result = ChromeBrowserMainParts::PreCreateThreads(); | 73 const int result = ChromeBrowserMainParts::PreCreateThreads(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 86 NOTREACHED(); | 86 NOTREACHED(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 void RecordBreakpadStatusUMA(MetricsService* metrics) { | 89 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
| 90 // TODO: crbug.com/139023 | 90 // TODO: crbug.com/139023 |
| 91 NOTIMPLEMENTED(); | 91 NOTIMPLEMENTED(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void WarnAboutMinimumSystemRequirements() { | 94 void WarnAboutMinimumSystemRequirements() { |
| 95 } | 95 } |
| OLD | NEW |