| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SXS_LINUX_H_ | 5 #ifndef CHROME_BROWSER_SXS_LINUX_H_ |
| 6 #define CHROME_BROWSER_SXS_LINUX_H_ | 6 #define CHROME_BROWSER_SXS_LINUX_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 class FilePath; | 11 class FilePath; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace sxs_linux { | 14 namespace sxs_linux { |
| 15 | 15 |
| 16 // Records channel of the running browser in user data dir. This is needed | 16 // Records channel of the running browser in user data dir. This is needed |
| 17 // to support a seamless and automatic upgrade from non-side-by-side | 17 // to support a seamless and automatic upgrade from non-side-by-side |
| 18 // to side-by-side Linux packages (the latter use different default data dirs). | 18 // to side-by-side Linux packages (the latter use different default data dirs). |
| 19 // Must be run on FILE thread. | 19 // Must be run on a blocking thread pool. |
| 20 void AddChannelMarkToUserDataDir(); | 20 void AddChannelMarkToUserDataDir(); |
| 21 | 21 |
| 22 // Returns true if user data dir migration has been requested. | 22 // Returns true if user data dir migration has been requested. |
| 23 bool ShouldMigrateUserDataDir() WARN_UNUSED_RESULT; | 23 bool ShouldMigrateUserDataDir() WARN_UNUSED_RESULT; |
| 24 | 24 |
| 25 // Migrates user data dir to a side-by-side-compatible one. | 25 // Migrates user data dir to a side-by-side-compatible one. |
| 26 // Returns exit code - caller should make the process exit with that code. | 26 // Returns exit code - caller should make the process exit with that code. |
| 27 int MigrateUserDataDir() WARN_UNUSED_RESULT; | 27 int MigrateUserDataDir() WARN_UNUSED_RESULT; |
| 28 | 28 |
| 29 } // namespace sxs_linux | 29 } // namespace sxs_linux |
| 30 | 30 |
| 31 #endif // CHROME_BROWSER_SXS_LINUX_H_ | 31 #endif // CHROME_BROWSER_SXS_LINUX_H_ |
| OLD | NEW |