| 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/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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 // Previously we stored information related to salient images for bookmarks | 84 // Previously we stored information related to salient images for bookmarks |
| 85 // in a local file. We replaced the salient images with favicons. As part | 85 // in a local file. We replaced the salient images with favicons. As part |
| 86 // of the clean up, the local file needs to be deleted. See crbug.com/499415. | 86 // of the clean up, the local file needs to be deleted. See crbug.com/499415. |
| 87 base::FilePath bookmark_image_file_path = | 87 base::FilePath bookmark_image_file_path = |
| 88 profile()->GetPath().Append("BookmarkImageAndUrlStore.db"); | 88 profile()->GetPath().Append("BookmarkImageAndUrlStore.db"); |
| 89 content::BrowserThread::PostDelayedTask( | 89 content::BrowserThread::PostDelayedTask( |
| 90 content::BrowserThread::FILE, FROM_HERE, | 90 content::BrowserThread::FILE, FROM_HERE, |
| 91 base::Bind(&DeleteFileTask, bookmark_image_file_path), | 91 base::Bind(&DeleteFileTask, bookmark_image_file_path), |
| 92 base::TimeDelta::FromMinutes(1)); | 92 base::TimeDelta::FromMinutes(1)); |
| 93 // Start watching the preferences that need to be backed up backup using |
| 94 // Android backup, so that we create a new backup if they change. |
| 95 backup_watcher_.reset(new chrome::android::ChromeBackupWatcher(profile())); |
| 93 } | 96 } |
| 94 | 97 |
| 95 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { | 98 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { |
| 96 TRACE_EVENT0("startup", | 99 TRACE_EVENT0("startup", |
| 97 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization") | 100 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization") |
| 98 net::NetworkChangeNotifier::SetFactory( | 101 net::NetworkChangeNotifier::SetFactory( |
| 99 new net::NetworkChangeNotifierFactoryAndroid()); | 102 new net::NetworkChangeNotifierFactoryAndroid()); |
| 100 | 103 |
| 101 content::Compositor::Initialize(); | 104 content::Compositor::Initialize(); |
| 102 | 105 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 127 content::BrowserThread::GetBlockingPool()->PostDelayedTask(FROM_HERE, | 130 content::BrowserThread::GetBlockingPool()->PostDelayedTask(FROM_HERE, |
| 128 base::Bind(&SeccompSupportDetector::StartDetection), | 131 base::Bind(&SeccompSupportDetector::StartDetection), |
| 129 base::TimeDelta::FromMinutes(1)); | 132 base::TimeDelta::FromMinutes(1)); |
| 130 | 133 |
| 131 RegisterChromeJavaMojoInterfaces(); | 134 RegisterChromeJavaMojoInterfaces(); |
| 132 } | 135 } |
| 133 | 136 |
| 134 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { | 137 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { |
| 135 NOTREACHED(); | 138 NOTREACHED(); |
| 136 } | 139 } |
| OLD | NEW |