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

Side by Side Diff: chrome/browser/sync_file_system/local/root_delete_helper.cc

Issue 506793002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/sync_file_system/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chrome/browser/sync_file_system/local/root_delete_helper.h" 5 #include "chrome/browser/sync_file_system/local/root_delete_helper.h"
6 6
7 #include "base/sequenced_task_runner.h" 7 #include "base/sequenced_task_runner.h"
8 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" 8 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h"
9 #include "chrome/browser/sync_file_system/local/local_file_sync_status.h" 9 #include "chrome/browser/sync_file_system/local/local_file_sync_status.h"
10 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 10 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
(...skipping 25 matching lines...) Expand all
36 RootDeleteHelper::RootDeleteHelper( 36 RootDeleteHelper::RootDeleteHelper(
37 storage::FileSystemContext* file_system_context, 37 storage::FileSystemContext* file_system_context,
38 LocalFileSyncStatus* sync_status, 38 LocalFileSyncStatus* sync_status,
39 const storage::FileSystemURL& url, 39 const storage::FileSystemURL& url,
40 const FileStatusCallback& callback) 40 const FileStatusCallback& callback)
41 : file_system_context_(file_system_context), 41 : file_system_context_(file_system_context),
42 url_(url), 42 url_(url),
43 callback_(callback), 43 callback_(callback),
44 sync_status_(sync_status), 44 sync_status_(sync_status),
45 weak_factory_(this) { 45 weak_factory_(this) {
46 DCHECK(file_system_context_); 46 DCHECK(file_system_context_.get());
47 DCHECK(url_.is_valid()); 47 DCHECK(url_.is_valid());
48 DCHECK(!callback_.is_null()); 48 DCHECK(!callback_.is_null());
49 DCHECK(sync_status_); 49 DCHECK(sync_status_);
50 // This is expected to run on the filesystem root. 50 // This is expected to run on the filesystem root.
51 DCHECK(storage::VirtualPath::IsRootPath(url.path())); 51 DCHECK(storage::VirtualPath::IsRootPath(url.path()));
52 } 52 }
53 53
54 RootDeleteHelper::~RootDeleteHelper() { 54 RootDeleteHelper::~RootDeleteHelper() {
55 } 55 }
56 56
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 98
99 void RootDeleteHelper::DidOpenFileSystem(const GURL& /* root */, 99 void RootDeleteHelper::DidOpenFileSystem(const GURL& /* root */,
100 const std::string& /* name */, 100 const std::string& /* name */,
101 base::File::Error error) { 101 base::File::Error error) {
102 FileStatusCallback callback = callback_; 102 FileStatusCallback callback = callback_;
103 callback.Run(error); 103 callback.Run(error);
104 } 104 }
105 105
106 } // namespace sync_file_system 106 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698