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

Unified Diff: chrome/browser/ui/webui/options/certificate_manager_handler.cc

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on 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/ui/webui/options/certificate_manager_handler.cc
diff --git a/chrome/browser/ui/webui/options/certificate_manager_handler.cc b/chrome/browser/ui/webui/options/certificate_manager_handler.cc
index 9bb04c5f3dce9e82f8109b0ca52d720601902456..6a97f8444c9acd05c8a9aa8ab79bf76cff50d25b 100644
--- a/chrome/browser/ui/webui/options/certificate_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/certificate_manager_handler.cc
@@ -259,7 +259,7 @@ CancelableTaskTracker::TaskId FileAccessProvider::StartRead(
// Post task to file thread to read file.
return tracker->PostTaskAndReply(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE).get(),
FROM_HERE,
base::Bind(&FileAccessProvider::DoRead, this, path, saved_errno, data),
base::Bind(callback, base::Owned(saved_errno), base::Owned(data)));
@@ -276,12 +276,16 @@ CancelableTaskTracker::TaskId FileAccessProvider::StartWrite(
// Post task to file thread to write file.
return tracker->PostTaskAndReply(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE).get(),
FROM_HERE,
- base::Bind(&FileAccessProvider::DoWrite, this,
- path, data, saved_errno, bytes_written),
- base::Bind(callback,
- base::Owned(saved_errno), base::Owned(bytes_written)));
+ base::Bind(&FileAccessProvider::DoWrite,
+ this,
+ path,
+ data,
+ saved_errno,
+ bytes_written),
+ base::Bind(
+ callback, base::Owned(saved_errno), base::Owned(bytes_written)));
}
void FileAccessProvider::DoRead(const base::FilePath& path,
« no previous file with comments | « chrome/browser/ui/webui/net_internals/net_internals_ui.cc ('k') | chrome/browser/ui/webui/options/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698