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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.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/extensions/api/developer_private/developer_private_api. h" 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api. h"
6 6
7 #include "apps/app_load_service.h" 7 #include "apps/app_load_service.h"
8 #include "apps/app_restore_service.h" 8 #include "apps/app_restore_service.h"
9 #include "apps/saved_files_service.h" 9 #include "apps/saved_files_service.h"
10 #include "apps/shell_window.h" 10 #include "apps/shell_window.h"
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 content::BrowserThread::PostTask(content::BrowserThread::FILE, FROM_HERE, 1086 content::BrowserThread::PostTask(content::BrowserThread::FILE, FROM_HERE,
1087 base::Bind(&DeveloperPrivateExportSyncfsFolderToLocalfsFunction::CopyFile, 1087 base::Bind(&DeveloperPrivateExportSyncfsFolderToLocalfsFunction::CopyFile,
1088 this, 1088 this,
1089 src_path, 1089 src_path,
1090 target_path)); 1090 target_path));
1091 } 1091 }
1092 1092
1093 void DeveloperPrivateExportSyncfsFolderToLocalfsFunction::CopyFile( 1093 void DeveloperPrivateExportSyncfsFolderToLocalfsFunction::CopyFile(
1094 const base::FilePath& src_path, 1094 const base::FilePath& src_path,
1095 const base::FilePath& target_path) { 1095 const base::FilePath& target_path) {
1096 if (!file_util::CreateDirectory(target_path.DirName())) { 1096 if (!base::CreateDirectory(target_path.DirName())) {
1097 SetError("Error in copying files from sync filesystem."); 1097 SetError("Error in copying files from sync filesystem.");
1098 success_ = false; 1098 success_ = false;
1099 } 1099 }
1100 1100
1101 if (success_) 1101 if (success_)
1102 base::CopyFile(src_path, target_path); 1102 base::CopyFile(src_path, target_path);
1103 1103
1104 CHECK(pendingCopyOperationsCount_ > 0); 1104 CHECK(pendingCopyOperationsCount_ > 0);
1105 pendingCopyOperationsCount_--; 1105 pendingCopyOperationsCount_--;
1106 1106
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 return true; 1341 return true;
1342 } 1342 }
1343 1343
1344 DeveloperPrivateIsProfileManagedFunction:: 1344 DeveloperPrivateIsProfileManagedFunction::
1345 ~DeveloperPrivateIsProfileManagedFunction() { 1345 ~DeveloperPrivateIsProfileManagedFunction() {
1346 } 1346 }
1347 1347
1348 } // namespace api 1348 } // namespace api
1349 1349
1350 } // namespace extensions 1350 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/download/download_prefs.cc ('k') | chrome/browser/extensions/api/file_system/file_system_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698