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

Unified Diff: chrome/browser/chromeos/drive/file_system_proxy.cc

Issue 18308004: Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/file_system_proxy.cc
diff --git a/chrome/browser/chromeos/drive/file_system_proxy.cc b/chrome/browser/chromeos/drive/file_system_proxy.cc
index 37845abbcbf6f4960b1863936b32f567ced38a18..1377ff73a8dd9ee05307fe683b3e38294a6ab2c7 100644
--- a/chrome/browser/chromeos/drive/file_system_proxy.cc
+++ b/chrome/browser/chromeos/drive/file_system_proxy.cc
@@ -61,11 +61,11 @@ void RunSnapshotFileCallback(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
scoped_refptr<webkit_blob::ShareableFileReference> file_reference =
- webkit_blob::ShareableFileReference::GetOrCreate(
- webkit_blob::ScopedFile(
- local_path, scope_out_policy,
- BrowserThread::GetMessageLoopProxyForThread(
- BrowserThread::FILE)));
+ webkit_blob::ShareableFileReference::GetOrCreate(webkit_blob::ScopedFile(
+ local_path,
+ scope_out_policy,
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)
+ .get()));
callback.Run(error, file_info, local_path, file_reference);
}
@@ -427,7 +427,7 @@ void FileSystemProxy::OnCreateWritableSnapshotFile(
file_ref = ShareableFileReference::GetOrCreate(
local_path,
ShareableFileReference::DONT_DELETE_ON_FINAL_RELEASE,
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE).get());
file_ref->AddFinalReleaseCallback(
base::Bind(&FileSystemProxy::CloseWritableSnapshotFile,
this,

Powered by Google App Engine
This is Rietveld 408576698