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

Side by Side Diff: chrome/browser/downgrade/user_data_downgrade.h

Issue 1986823002: Reset user data directory and disk cache directory after downgrade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cr Created 4 years, 6 months 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/downgrade/OWNER ('k') | chrome/browser/downgrade/user_data_downgrade.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_DOWNGRADE_USER_DATA_DOWNGRADE_H_
6 #define CHROME_BROWSER_DOWNGRADE_USER_DATA_DOWNGRADE_H_
7
8 // Moves aside all directories containing user data to prevent the browser from
9 // reading them when Chrome is downgraded from a higher version. When called
10 // early in startup, this will result in the browser performing first-run for
11 // the user. To avoid long-running I/O operations, this function merely moves
12 // directories aside. A subsequent call to DeleteMovedUserDataSoon (below) must
13 // be made later in startup to free up disk space.
14 void MoveUserDataForFirstRunAfterDowngrade();
15
16 // Schedules a search for the removal of any directories moved aside by
17 // MoveUserDataForFirstRunAfterDowngrade. This operation is idempotent,
18 // and may be safely called when no such directories exist.
19 void DeleteMovedUserDataSoon();
20
21 // Enable browser test mode. MoveUserDataForFirstRunAfterDowngrade will no
grt (UTC plus 2) 2016/05/27 18:03:00 maybe change the first sentence to: "Changes the b
22 // longer rely on registry and DeleteMovedUserDataSoon will always post task
23 // into blocking pool for brower test.
24 void SimulateDowngradeForTest();
25
26 #endif // CHROME_BROWSER_DOWNGRADE_USER_DATA_DOWNGRADE_H_
OLDNEW
« no previous file with comments | « chrome/browser/downgrade/OWNER ('k') | chrome/browser/downgrade/user_data_downgrade.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698