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

Unified Diff: webkit/browser/fileapi/sandbox_quota_observer.cc

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: webkit/browser/fileapi/sandbox_quota_observer.cc
diff --git a/webkit/browser/fileapi/sandbox_quota_observer.cc b/webkit/browser/fileapi/sandbox_quota_observer.cc
index 05fa511fcc970ab6104dbef9380a3f95cd2cd7e7..9098db5402e9272a0060a7c4e4b4217508f37be1 100644
--- a/webkit/browser/fileapi/sandbox_quota_observer.cc
+++ b/webkit/browser/fileapi/sandbox_quota_observer.cc
@@ -42,7 +42,7 @@ void SandboxQuotaObserver::OnUpdate(const FileSystemURL& url,
DCHECK(SandboxMountPointProvider::IsSandboxType(url.type()));
DCHECK(update_notify_runner_->RunsTasksOnCurrentThread());
- if (quota_manager_proxy_) {
+ if (quota_manager_proxy_.get()) {
quota_manager_proxy_->NotifyStorageModified(
quota::QuotaClient::kFileSystem,
url.origin(),
@@ -83,7 +83,7 @@ void SandboxQuotaObserver::OnEndUpdate(const FileSystemURL& url) {
void SandboxQuotaObserver::OnAccess(const FileSystemURL& url) {
DCHECK(SandboxMountPointProvider::IsSandboxType(url.type()));
- if (quota_manager_proxy_) {
+ if (quota_manager_proxy_.get()) {
quota_manager_proxy_->NotifyStorageAccessed(
quota::QuotaClient::kFileSystem,
url.origin(),
@@ -95,10 +95,11 @@ void SandboxQuotaObserver::SetUsageCacheEnabled(
const GURL& origin,
FileSystemType type,
bool enabled) {
- if (quota_manager_proxy_) {
+ if (quota_manager_proxy_.get()) {
quota_manager_proxy_->SetUsageCacheEnabled(
quota::QuotaClient::kFileSystem,
- origin, FileSystemTypeToQuotaStorageType(type),
+ origin,
+ FileSystemTypeToQuotaStorageType(type),
enabled);
}
}
« no previous file with comments | « webkit/browser/fileapi/sandbox_mount_point_provider.cc ('k') | webkit/browser/fileapi/syncable/canned_syncable_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698