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

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

Issue 2065103002: Removes downgrade browser test hack and verifies renamed user data dir. (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/chrome_browser_main.cc ('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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_DOWNGRADE_USER_DATA_DOWNGRADE_H_ 5 #ifndef CHROME_BROWSER_DOWNGRADE_USER_DATA_DOWNGRADE_H_
6 #define CHROME_BROWSER_DOWNGRADE_USER_DATA_DOWNGRADE_H_ 6 #define CHROME_BROWSER_DOWNGRADE_USER_DATA_DOWNGRADE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/version.h" 9 #include "base/version.h"
10 10
(...skipping 20 matching lines...) Expand all
31 base::Version GetLastVersion(const base::FilePath& user_data_dir); 31 base::Version GetLastVersion(const base::FilePath& user_data_dir);
32 32
33 // Schedules a search for the removal of any directories moved aside by 33 // Schedules a search for the removal of any directories moved aside by
34 // MoveUserDataForFirstRunAfterDowngrade. This operation is idempotent, 34 // MoveUserDataForFirstRunAfterDowngrade. This operation is idempotent,
35 // and may be safely called when no such directories exist. 35 // and may be safely called when no such directories exist.
36 void DeleteMovedUserDataSoon(); 36 void DeleteMovedUserDataSoon();
37 37
38 // Returns true if Chrome is installed by MSI. 38 // Returns true if Chrome is installed by MSI.
39 bool IsMSIInstall(); 39 bool IsMSIInstall();
40 40
41 // Changes the behavior of the above functions to simulate a downgrade for use
42 // in tests. MoveUserDataForFirstRunAfterDowngrade will no longer rely on
43 // registry and DeleteMovedUserDataSoon will always post task into blocking
44 // pool for brower test.
45 void SetSimulateDowngradeForTest(bool is_browser_test);
46
47 } // namespace downgrade 41 } // namespace downgrade
48 42
49 #endif // CHROME_BROWSER_DOWNGRADE_USER_DATA_DOWNGRADE_H_ 43 #endif // CHROME_BROWSER_DOWNGRADE_USER_DATA_DOWNGRADE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/downgrade/user_data_downgrade.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698