Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/browser/chrome_browser_main_android.cc

Issue 2511713002: Implement Android key/value backup (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/chrome_browser_main_android.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // Previously we stored information related to salient images for bookmarks 81 // Previously we stored information related to salient images for bookmarks
82 // in a local file. We replaced the salient images with favicons. As part 82 // in a local file. We replaced the salient images with favicons. As part
83 // of the clean up, the local file needs to be deleted. See crbug.com/499415. 83 // of the clean up, the local file needs to be deleted. See crbug.com/499415.
84 base::FilePath bookmark_image_file_path = 84 base::FilePath bookmark_image_file_path =
85 profile()->GetPath().Append("BookmarkImageAndUrlStore.db"); 85 profile()->GetPath().Append("BookmarkImageAndUrlStore.db");
86 content::BrowserThread::PostDelayedTask( 86 content::BrowserThread::PostDelayedTask(
87 content::BrowserThread::FILE, FROM_HERE, 87 content::BrowserThread::FILE, FROM_HERE,
88 base::Bind(&DeleteFileTask, bookmark_image_file_path), 88 base::Bind(&DeleteFileTask, bookmark_image_file_path),
89 base::TimeDelta::FromMinutes(1)); 89 base::TimeDelta::FromMinutes(1));
90 // Start watching the preferences that need to be backed up backup using
91 // Android backup, so that we create a new backup if they change.
92 backup_watcher_.reset(new chrome::android::ChromeBackupWatcher(profile()));
90 } 93 }
91 94
92 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { 95 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() {
93 TRACE_EVENT0("startup", 96 TRACE_EVENT0("startup",
94 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization") 97 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization")
95 net::NetworkChangeNotifier::SetFactory( 98 net::NetworkChangeNotifier::SetFactory(
96 new net::NetworkChangeNotifierFactoryAndroid()); 99 new net::NetworkChangeNotifierFactoryAndroid());
97 100
98 content::Compositor::Initialize(); 101 content::Compositor::Initialize();
99 102
(...skipping 24 matching lines...) Expand all
124 content::BrowserThread::GetBlockingPool()->PostDelayedTask(FROM_HERE, 127 content::BrowserThread::GetBlockingPool()->PostDelayedTask(FROM_HERE,
125 base::Bind(&SeccompSupportDetector::StartDetection), 128 base::Bind(&SeccompSupportDetector::StartDetection),
126 base::TimeDelta::FromMinutes(1)); 129 base::TimeDelta::FromMinutes(1));
127 130
128 RegisterChromeJavaMojoInterfaces(); 131 RegisterChromeJavaMojoInterfaces();
129 } 132 }
130 133
131 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { 134 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() {
132 NOTREACHED(); 135 NOTREACHED();
133 } 136 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_android.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698