| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:StartUiMsgLoop"); | 77 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:StartUiMsgLoop"); |
| 78 base::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() { | |
| 88 TRACE_EVENT0("startup", "ChromeBrowserMainPartsAndroid::PreCreateThreads") | |
| 89 // PreCreateThreads initializes ResourceBundle instance. | |
| 90 const int result = ChromeBrowserMainParts::PreCreateThreads(); | |
| 91 | |
| 92 // Add devtools_resources.pak which is used in Chromium TestShell. | |
| 93 base::FilePath paks_path; | |
| 94 PathService::Get(ui::DIR_RESOURCE_PAKS_ANDROID, &paks_path); | |
| 95 ResourceBundle::GetSharedInstance().AddOptionalDataPackFromPath( | |
| 96 paks_path.Append(FILE_PATH_LITERAL("devtools_resources.pak")), | |
| 97 ui::SCALE_FACTOR_NONE); | |
| 98 | |
| 99 return result; | |
| 100 } | |
| 101 | |
| 102 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { | 87 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { |
| 103 NOTREACHED(); | 88 NOTREACHED(); |
| 104 } | 89 } |
| 105 | 90 |
| 106 void RecordBreakpadStatusUMA(MetricsService* metrics) { | 91 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
| 107 // TODO: crbug.com/139023 | 92 // TODO: crbug.com/139023 |
| 108 NOTIMPLEMENTED(); | 93 NOTIMPLEMENTED(); |
| 109 } | 94 } |
| 110 | 95 |
| 111 void WarnAboutMinimumSystemRequirements() { | 96 void WarnAboutMinimumSystemRequirements() { |
| 112 } | 97 } |
| OLD | NEW |