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

Unified Diff: content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc

Issue 17948002: Update Linux 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: content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
diff --git a/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc b/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
index 96180cbc6c04c7f63939b064dfd5bde4fae878cb..4189741d34b79a86c3c819e18d065c6c1fc938d5 100644
--- a/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
+++ b/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
@@ -66,7 +66,7 @@ PepperFileSystemBrowserHost::PepperFileSystemBrowserHost(BrowserPpapiHost* host,
}
PepperFileSystemBrowserHost::~PepperFileSystemBrowserHost() {
- if (fs_context_)
+ if (fs_context_.get())
fs_context_->operation_runner()->Shutdown();
}
@@ -137,9 +137,9 @@ void PepperFileSystemBrowserHost::GotFileSystemContext(
ppapi::host::ReplyMessageContext reply_context,
fileapi::FileSystemType file_system_type,
scoped_refptr<fileapi::FileSystemContext> fs_context) {
- if (!fs_context) {
- OpenFileSystemComplete(reply_context, base::PLATFORM_FILE_ERROR_FAILED,
- std::string(), GURL());
+ if (!fs_context.get()) {
+ OpenFileSystemComplete(
+ reply_context, base::PLATFORM_FILE_ERROR_FAILED, std::string(), GURL());
return;
}
GURL origin = browser_ppapi_host_->GetDocumentURLForInstance(

Powered by Google App Engine
This is Rietveld 408576698