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

Unified Diff: chrome/browser/apps/ephemeral_app_service.cc

Issue 507483003: Remove implicit conversions from scoped_refptr to T* in chrome/browser/apps/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/apps/ephemeral_app_service.cc
diff --git a/chrome/browser/apps/ephemeral_app_service.cc b/chrome/browser/apps/ephemeral_app_service.cc
index f23cc9085e64534363c3ff47f1a0685cd95cff41..36c8cdab4a9c7bc7da5201c26f34d09d6533985e 100644
--- a/chrome/browser/apps/ephemeral_app_service.cc
+++ b/chrome/browser/apps/ephemeral_app_service.cc
@@ -212,7 +212,7 @@ void EphemeralAppService::InitEphemeralAppCount() {
ephemeral_app_count_ = 0;
for (ExtensionSet::const_iterator it = extensions->begin();
it != extensions->end(); ++it) {
- const Extension* extension = *it;
+ const Extension* extension = it->get();
if (prefs->IsEphemeralApp(extension->id()))
++ephemeral_app_count_;
}
@@ -247,7 +247,7 @@ void EphemeralAppService::DisableEphemeralAppsOnStartup() {
for (ExtensionSet::const_iterator it = extensions->begin();
it != extensions->end();
++it) {
- const Extension* extension = *it;
+ const Extension* extension = it->get();
if (!prefs->IsEphemeralApp(extension->id()))
continue;
@@ -314,7 +314,7 @@ void EphemeralAppService::GarbageCollectApps() {
// Populate a list of ephemeral apps, ordered by their last launch time.
for (ExtensionSet::const_iterator it = extensions->begin();
it != extensions->end(); ++it) {
- const Extension* extension = *it;
+ const Extension* extension = it->get();
if (!prefs->IsEphemeralApp(extension->id()))
continue;

Powered by Google App Engine
This is Rietveld 408576698