Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / chrome / browser / first_run / first_run_internal_linux.cc
blobf2441e2956d561e8b5ea56da97a346813a552fbe
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
3 // found in the LICENSE file.
5 #include "chrome/browser/first_run/first_run_internal.h"
7 #include "base/base_paths.h"
8 #include "base/files/file_path.h"
9 #include "base/path_service.h"
10 #include "chrome/installer/util/master_preferences.h"
12 namespace first_run {
13 namespace internal {
15 bool IsOrganicFirstRun() {
16 // We treat all installs as organic.
17 return true;
20 base::FilePath MasterPrefsPath() {
21 // The standard location of the master prefs is next to the chrome binary.
22 base::FilePath master_prefs;
23 if (!PathService::Get(base::DIR_EXE, &master_prefs))
24 return base::FilePath();
25 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs);
28 } // namespace internal
29 } // namespace first_run