blob: 618654ed6286eb8fe47ed9f061aee2856f57d0e6 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/compiler_specific.h"
namespace base {
class FilePath;
namespace sxs_linux {
// Records channel of the running browser in user data dir. This is needed
// to support a seamless and automatic upgrade from non-side-by-side
// to side-by-side Linux packages (the latter use different default data dirs).
// Must be run on a blocking thread pool.
void AddChannelMarkToUserDataDir();
// Returns true if user data dir migration has been requested.
bool ShouldMigrateUserDataDir() WARN_UNUSED_RESULT;
// Migrates user data dir to a side-by-side-compatible one.
// Returns exit code - caller should make the process exit with that code.
int MigrateUserDataDir() WARN_UNUSED_RESULT;
} // namespace sxs_linux