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 "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "chrome/browser/android/seccomp_support_detector.h" |
10 #include "chrome/browser/google/google_search_counter_android.h" | 11 #include "chrome/browser/google/google_search_counter_android.h" |
11 #include "chrome/browser/signin/signin_manager_factory.h" | 12 #include "chrome/browser/signin/signin_manager_factory.h" |
12 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
13 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
14 #include "components/crash/app/breakpad_linux.h" | 15 #include "components/crash/app/breakpad_linux.h" |
15 #include "components/crash/browser/crash_dump_manager_android.h" | 16 #include "components/crash/browser/crash_dump_manager_android.h" |
16 #include "components/signin/core/browser/signin_manager.h" | 17 #include "components/signin/core/browser/signin_manager.h" |
17 #include "content/public/browser/android/compositor.h" | 18 #include "content/public/browser/android/compositor.h" |
| 19 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/common/main_function_params.h" | 20 #include "content/public/common/main_function_params.h" |
19 #include "net/android/network_change_notifier_factory_android.h" | 21 #include "net/android/network_change_notifier_factory_android.h" |
20 #include "net/base/network_change_notifier.h" | 22 #include "net/base/network_change_notifier.h" |
21 #include "ui/base/ui_base_paths.h" | 23 #include "ui/base/ui_base_paths.h" |
22 | 24 |
23 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( | 25 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( |
24 const content::MainFunctionParams& parameters) | 26 const content::MainFunctionParams& parameters) |
25 : ChromeBrowserMainParts(parameters) { | 27 : ChromeBrowserMainParts(parameters) { |
26 } | 28 } |
27 | 29 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 89 |
88 { | 90 { |
89 TRACE_EVENT0("startup", | 91 TRACE_EVENT0("startup", |
90 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:StartUiMsgLoop"); | 92 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:StartUiMsgLoop"); |
91 base::MessageLoopForUI::current()->Start(); | 93 base::MessageLoopForUI::current()->Start(); |
92 } | 94 } |
93 | 95 |
94 ChromeBrowserMainParts::PreEarlyInitialization(); | 96 ChromeBrowserMainParts::PreEarlyInitialization(); |
95 } | 97 } |
96 | 98 |
| 99 void ChromeBrowserMainPartsAndroid::PostBrowserStart() { |
| 100 ChromeBrowserMainParts::PostBrowserStart(); |
| 101 |
| 102 content::BrowserThread::GetBlockingPool()->PostDelayedTask(FROM_HERE, |
| 103 base::Bind(&SeccompSupportDetector::StartDetection), |
| 104 base::TimeDelta::FromMinutes(1)); |
| 105 } |
| 106 |
97 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { | 107 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { |
98 NOTREACHED(); | 108 NOTREACHED(); |
99 } | 109 } |
OLD | NEW |