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

Unified Diff: chrome/browser/ui/webui/quota_internals/quota_internals_handler.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_handler.cc
diff --git a/chrome/browser/ui/webui/quota_internals/quota_internals_handler.cc b/chrome/browser/ui/webui/quota_internals/quota_internals_handler.cc
index c0a7df3830fdc9e7fc52cdff466cbb6305de7e6f..88d0dd2c624dce6d1d2ce776330fe585b0ad1691 100644
--- a/chrome/browser/ui/webui/quota_internals/quota_internals_handler.cc
+++ b/chrome/browser/ui/webui/quota_internals/quota_internals_handler.cc
@@ -23,7 +23,7 @@ namespace quota_internals {
QuotaInternalsHandler::QuotaInternalsHandler() {}
QuotaInternalsHandler::~QuotaInternalsHandler() {
- if (proxy_)
+ if (proxy_.get())
proxy_->handler_ = NULL;
}
@@ -85,7 +85,7 @@ void QuotaInternalsHandler::SendMessage(const std::string& message,
}
void QuotaInternalsHandler::OnRequestInfo(const base::ListValue*) {
- if (!proxy_)
+ if (!proxy_.get())
proxy_ = new QuotaInternalsProxy(this);
proxy_->RequestInfo(
BrowserContext::GetDefaultStoragePartition(

Powered by Google App Engine
This is Rietveld 408576698