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

Side by Side Diff: chrome/browser/first_run/first_run_linux.cc

Issue 9153008: Progressively refacto FirstRun class to first_run namespace(part 4). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/first_run/first_run.h" 5 #include "chrome/browser/first_run/first_run.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 dont_import_items, 90 dont_import_items,
91 search_engine_experiment, 91 search_engine_experiment,
92 randomize_search_engine_experiment, 92 randomize_search_engine_experiment,
93 make_chrome_default); 93 make_chrome_default);
94 94
95 process_singleton->Unlock(); 95 process_singleton->Unlock();
96 CreateSentinel(); 96 CreateSentinel();
97 #endif // !defined(USE_AURA) 97 #endif // !defined(USE_AURA)
98 } 98 }
99 99
100 } // namespace first_run 100 FilePath MasterPrefsPath() {
101
102 // static
103 FilePath FirstRun::MasterPrefsPath() {
104 // The standard location of the master prefs is next to the chrome binary. 101 // The standard location of the master prefs is next to the chrome binary.
105 FilePath master_prefs; 102 FilePath master_prefs;
106 if (!PathService::Get(base::DIR_EXE, &master_prefs)) 103 if (!PathService::Get(base::DIR_EXE, &master_prefs))
107 return FilePath(); 104 return FilePath();
108 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); 105 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs);
109 } 106 }
107
108 } // namespace first_run
OLDNEW
« no previous file with comments | « chrome/browser/first_run/first_run_browsertest.cc ('k') | chrome/browser/first_run/first_run_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698