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

Unified Diff: chrome/browser/chromeos/fileapi/file_system_backend.cc

Issue 564503002: Remove implicit conversions from scoped_refptr to T* in c/b/chromeos/file* (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/fileapi/file_system_backend.cc
diff --git a/chrome/browser/chromeos/fileapi/file_system_backend.cc b/chrome/browser/chromeos/fileapi/file_system_backend.cc
index 9a60aab1689fc2bb256c52c97f6ffd8322818045..0a558c3d7761fb5b9477675968817930309c91fe 100644
--- a/chrome/browser/chromeos/fileapi/file_system_backend.cc
+++ b/chrome/browser/chromeos/fileapi/file_system_backend.cc
@@ -166,7 +166,7 @@ bool FileSystemBackend::IsAccessAllowed(
}
// Check first to make sure this extension has fileBrowserHander permissions.
- if (!special_storage_policy_ ||
+ if (!special_storage_policy_.get() ||
!special_storage_policy_->IsFileHandler(extension_id))
return false;
@@ -176,7 +176,7 @@ bool FileSystemBackend::IsAccessAllowed(
void FileSystemBackend::GrantFullAccessToExtension(
const std::string& extension_id) {
- if (!special_storage_policy_)
+ if (!special_storage_policy_.get())
return;
if (!special_storage_policy_->IsFileHandler(extension_id)) {
NOTREACHED();
@@ -187,7 +187,7 @@ void FileSystemBackend::GrantFullAccessToExtension(
void FileSystemBackend::GrantFileAccessToExtension(
const std::string& extension_id, const base::FilePath& virtual_path) {
- if (!special_storage_policy_)
+ if (!special_storage_policy_.get())
return;
// All we care about here is access from extensions for now.
if (!special_storage_policy_->IsFileHandler(extension_id)) {

Powered by Google App Engine
This is Rietveld 408576698