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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.cc

Issue 18332014: Move Copy* into the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: windows Created 7 years, 5 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/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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 1033
1034 void DeveloperPrivateExportSyncfsFolderToLocalfsFunction::CopyFile( 1034 void DeveloperPrivateExportSyncfsFolderToLocalfsFunction::CopyFile(
1035 const base::FilePath& src_path, 1035 const base::FilePath& src_path,
1036 const base::FilePath& target_path) { 1036 const base::FilePath& target_path) {
1037 if (!file_util::CreateDirectory(target_path.DirName())) { 1037 if (!file_util::CreateDirectory(target_path.DirName())) {
1038 SetError("Error in copying files from sync filesystem."); 1038 SetError("Error in copying files from sync filesystem.");
1039 success_ = false; 1039 success_ = false;
1040 } 1040 }
1041 1041
1042 if (success_) 1042 if (success_)
1043 file_util::CopyFile(src_path, target_path); 1043 base::CopyFile(src_path, target_path);
1044 1044
1045 CHECK(pendingCopyOperationsCount_ > 0); 1045 CHECK(pendingCopyOperationsCount_ > 0);
1046 pendingCopyOperationsCount_--; 1046 pendingCopyOperationsCount_--;
1047 1047
1048 if (!pendingCopyOperationsCount_) { 1048 if (!pendingCopyOperationsCount_) {
1049 content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE, 1049 content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
1050 base::Bind(&DeveloperPrivateExportSyncfsFolderToLocalfsFunction:: 1050 base::Bind(&DeveloperPrivateExportSyncfsFolderToLocalfsFunction::
1051 SendResponse, 1051 SendResponse,
1052 this, 1052 this,
1053 success_)); 1053 success_));
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 1248
1249 #undef SET_STRING 1249 #undef SET_STRING
1250 return true; 1250 return true;
1251 } 1251 }
1252 1252
1253 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} 1253 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {}
1254 1254
1255 } // namespace api 1255 } // namespace api
1256 1256
1257 } // namespace extensions 1257 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698