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)) { |