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

Side by Side Diff: storage/browser/fileapi/copy_or_move_operation_delegate.cc

Issue 2236453002: storage: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "storage/browser/fileapi/copy_or_move_operation_delegate.h" 5 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <tuple> 10 #include <tuple>
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 operation_type_(operation_type), 747 operation_type_(operation_type),
748 option_(option), 748 option_(option),
749 error_behavior_(error_behavior), 749 error_behavior_(error_behavior),
750 progress_callback_(progress_callback), 750 progress_callback_(progress_callback),
751 callback_(callback), 751 callback_(callback),
752 weak_factory_(this) { 752 weak_factory_(this) {
753 same_file_system_ = src_root_.IsInSameFileSystem(dest_root_); 753 same_file_system_ = src_root_.IsInSameFileSystem(dest_root_);
754 } 754 }
755 755
756 CopyOrMoveOperationDelegate::~CopyOrMoveOperationDelegate() { 756 CopyOrMoveOperationDelegate::~CopyOrMoveOperationDelegate() {
757 STLDeleteElements(&running_copy_set_); 757 base::STLDeleteElements(&running_copy_set_);
758 } 758 }
759 759
760 void CopyOrMoveOperationDelegate::Run() { 760 void CopyOrMoveOperationDelegate::Run() {
761 // Not supported; this should never be called. 761 // Not supported; this should never be called.
762 NOTREACHED(); 762 NOTREACHED();
763 } 763 }
764 764
765 void CopyOrMoveOperationDelegate::RunRecursively() { 765 void CopyOrMoveOperationDelegate::RunRecursively() {
766 // Perform light-weight checks first. 766 // Perform light-weight checks first.
767 767
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 base::FilePath relative = dest_root_.virtual_path(); 1029 base::FilePath relative = dest_root_.virtual_path();
1030 src_root_.virtual_path().AppendRelativePath(src_url.virtual_path(), 1030 src_root_.virtual_path().AppendRelativePath(src_url.virtual_path(),
1031 &relative); 1031 &relative);
1032 return file_system_context()->CreateCrackedFileSystemURL( 1032 return file_system_context()->CreateCrackedFileSystemURL(
1033 dest_root_.origin(), 1033 dest_root_.origin(),
1034 dest_root_.mount_type(), 1034 dest_root_.mount_type(),
1035 relative); 1035 relative);
1036 } 1036 }
1037 1037
1038 } // namespace storage 1038 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_storage_registry.cc ('k') | storage/browser/fileapi/external_mount_points.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698