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

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

Issue 100573002: Move directory creation functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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_internal.h" 5 #include "chrome/browser/first_run/first_run_internal.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include "base/base_paths.h" 10 #include "base/base_paths.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 file_util::WriteFile(*eula_path, terms.data(), terms.size()) != -1); 129 file_util::WriteFile(*eula_path, terms.data(), terms.size()) != -1);
130 } 130 }
131 131
132 // Creates the sentinel indicating that the EULA was required and has been 132 // Creates the sentinel indicating that the EULA was required and has been
133 // accepted. 133 // accepted.
134 bool CreateEULASentinel() { 134 bool CreateEULASentinel() {
135 base::FilePath eula_sentinel; 135 base::FilePath eula_sentinel;
136 if (!GetEULASentinelFilePath(&eula_sentinel)) 136 if (!GetEULASentinelFilePath(&eula_sentinel))
137 return false; 137 return false;
138 138
139 return (file_util::CreateDirectory(eula_sentinel.DirName()) && 139 return (base::CreateDirectory(eula_sentinel.DirName()) &&
140 file_util::WriteFile(eula_sentinel, "", 0) != -1); 140 file_util::WriteFile(eula_sentinel, "", 0) != -1);
141 } 141 }
142 142
143 } // namespace 143 } // namespace
144 144
145 namespace first_run { 145 namespace first_run {
146 namespace internal { 146 namespace internal {
147 147
148 void DoPostImportPlatformSpecificTasks(Profile* /* profile */) { 148 void DoPostImportPlatformSpecificTasks(Profile* /* profile */) {
149 // Trigger the Active Setup command for system-level Chromes to finish 149 // Trigger the Active Setup command for system-level Chromes to finish
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 base::FilePath MasterPrefsPath() { 201 base::FilePath MasterPrefsPath() {
202 // The standard location of the master prefs is next to the chrome binary. 202 // The standard location of the master prefs is next to the chrome binary.
203 base::FilePath master_prefs; 203 base::FilePath master_prefs;
204 if (!PathService::Get(base::DIR_EXE, &master_prefs)) 204 if (!PathService::Get(base::DIR_EXE, &master_prefs))
205 return base::FilePath(); 205 return base::FilePath();
206 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); 206 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs);
207 } 207 }
208 208
209 } // namespace internal 209 } // namespace internal
210 } // namespace first_run 210 } // namespace first_run
OLDNEW
« no previous file with comments | « chrome/browser/first_run/first_run.cc ('k') | chrome/browser/history/history_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698