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

Side by Side Diff: content/browser/web_contents/web_contents_drag_win.cc

Issue 18584011: Rename base::Delete to base::DeleteFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 "content/browser/web_contents/web_contents_drag_win.h" 5 #include "content/browser/web_contents/web_contents_drag_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 default_name); 248 default_name);
249 base::FilePath temp_dir_path; 249 base::FilePath temp_dir_path;
250 if (!file_util::CreateNewTempDirectory( 250 if (!file_util::CreateNewTempDirectory(
251 FILE_PATH_LITERAL("chrome_drag"), &temp_dir_path)) 251 FILE_PATH_LITERAL("chrome_drag"), &temp_dir_path))
252 return; 252 return;
253 base::FilePath download_path = 253 base::FilePath download_path =
254 temp_dir_path.Append(generated_download_file_name); 254 temp_dir_path.Append(generated_download_file_name);
255 255
256 // We cannot know when the target application will be done using the temporary 256 // We cannot know when the target application will be done using the temporary
257 // file, so schedule it to be deleted after rebooting. 257 // file, so schedule it to be deleted after rebooting.
258 base::DeleteAfterReboot(download_path); 258 base::DeleteFileAfterReboot(download_path);
259 base::DeleteAfterReboot(temp_dir_path); 259 base::DeleteFileAfterReboot(temp_dir_path);
260 260
261 // Provide the data as file (CF_HDROP). A temporary download file with the 261 // Provide the data as file (CF_HDROP). A temporary download file with the
262 // Zone.Identifier ADS (Alternate Data Stream) attached will be created. 262 // Zone.Identifier ADS (Alternate Data Stream) attached will be created.
263 scoped_refptr<DragDownloadFile> download_file = 263 scoped_refptr<DragDownloadFile> download_file =
264 new DragDownloadFile( 264 new DragDownloadFile(
265 download_path, 265 download_path,
266 scoped_ptr<net::FileStream>(), 266 scoped_ptr<net::FileStream>(),
267 download_url, 267 download_url,
268 Referrer(page_url, drop_data.referrer_policy), 268 Referrer(page_url, drop_data.referrer_policy),
269 page_encoding, 269 page_encoding,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 FROM_HERE, 434 FROM_HERE,
435 base::Bind(&WebContentsDragWin::CloseThread, this)); 435 base::Bind(&WebContentsDragWin::CloseThread, this));
436 } 436 }
437 437
438 // static 438 // static
439 void WebContentsDragWin::DisableDragDropForTesting() { 439 void WebContentsDragWin::DisableDragDropForTesting() {
440 run_do_drag_drop = false; 440 run_do_drag_drop = false;
441 } 441 }
442 442
443 } // namespace content 443 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/navigation_controller_impl_unittest.cc ('k') | content/common/sandbox_mac_diraccess_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698