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

Unified Diff: chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc

Issue 16290004: Update chrome/ 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: chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc
diff --git a/chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc b/chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc
index bba4d13daf338331f8cef39aae4947599a322dc9..bd4a8b7b2d01305a0732b5954603378373e849cc 100644
--- a/chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc
+++ b/chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc
@@ -23,7 +23,7 @@ QuotaInternalsProxy::QuotaInternalsProxy(QuotaInternalsHandler* handler)
void QuotaInternalsProxy::RequestInfo(
scoped_refptr<quota::QuotaManager> quota_manager) {
- DCHECK(quota_manager);
+ DCHECK(quota_manager.get());
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
@@ -177,7 +177,7 @@ void QuotaInternalsProxy::DidGetHostUsage(const std::string& host,
}
void QuotaInternalsProxy::RequestPerOriginInfo(quota::StorageType type) {
- DCHECK(quota_manager_);
+ DCHECK(quota_manager_.get());
std::set<GURL> origins;
quota_manager_->GetCachedOrigins(type, &origins);
@@ -217,11 +217,13 @@ void QuotaInternalsProxy::VisitHost(const std::string& host,
void QuotaInternalsProxy::GetHostUsage(const std::string& host,
quota::StorageType type) {
- DCHECK(quota_manager_);
- quota_manager_->GetHostUsage(
- host, type,
- base::Bind(&QuotaInternalsProxy::DidGetHostUsage,
- weak_factory_.GetWeakPtr(), host, type));
+ DCHECK(quota_manager_.get());
+ quota_manager_->GetHostUsage(host,
+ type,
+ base::Bind(&QuotaInternalsProxy::DidGetHostUsage,
+ weak_factory_.GetWeakPtr(),
+ host,
+ type));
}
} // namespace quota_internals
« no previous file with comments | « chrome/browser/ui/webui/quota_internals/quota_internals_handler.cc ('k') | chrome/browser/ui/webui/session_favicon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698