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

Side by Side Diff: chrome/browser/extensions/platform_app_browsertest.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 "apps/shell_window.h" 5 #include "apps/shell_window.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 DISALLOW_COPY_AND_ASSIGN(TabsAddedNotificationObserver); 105 DISALLOW_COPY_AND_ASSIGN(TabsAddedNotificationObserver);
106 }; 106 };
107 107
108 bool CopyTestDataAndSetCommandLineArg( 108 bool CopyTestDataAndSetCommandLineArg(
109 const base::FilePath& test_data_file, 109 const base::FilePath& test_data_file,
110 const base::FilePath& temp_dir, 110 const base::FilePath& temp_dir,
111 const char* filename) { 111 const char* filename) {
112 base::FilePath path = temp_dir.AppendASCII( 112 base::FilePath path = temp_dir.AppendASCII(
113 filename).NormalizePathSeparators(); 113 filename).NormalizePathSeparators();
114 if (!(file_util::CopyFile(test_data_file, path))) 114 if (!(base::CopyFile(test_data_file, path)))
115 return false; 115 return false;
116 116
117 CommandLine* command_line = CommandLine::ForCurrentProcess(); 117 CommandLine* command_line = CommandLine::ForCurrentProcess();
118 command_line->AppendArgPath(path); 118 command_line->AppendArgPath(path);
119 return true; 119 return true;
120 } 120 }
121 121
122 const char kTestFilePath[] = "platform_apps/launch_files/test.txt"; 122 const char kTestFilePath[] = "platform_apps/launch_files/test.txt";
123 123
124 } // namespace 124 } // namespace
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 1078
1079 while (!ContainsKey(opener_app_ids_, file_manager->id())) { 1079 while (!ContainsKey(opener_app_ids_, file_manager->id())) {
1080 content::RunAllPendingInMessageLoop(); 1080 content::RunAllPendingInMessageLoop();
1081 } 1081 }
1082 } 1082 }
1083 1083
1084 #endif // defined(OS_CHROMEOS) 1084 #endif // defined(OS_CHROMEOS)
1085 1085
1086 1086
1087 } // namespace extensions 1087 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/pack_extension_unittest.cc ('k') | chrome/browser/extensions/sandboxed_unpacker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698