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

Unified Diff: chrome/browser/apps/ephemeral_app_launcher.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_launcher.cc
diff --git a/chrome/browser/apps/ephemeral_app_launcher.cc b/chrome/browser/apps/ephemeral_app_launcher.cc
index 51b1908b91a73b2fd5491bff6c7948decaa1fcae..7581863473f46c1a11d0caf9857cc7a4c959ae1d 100644
--- a/chrome/browser/apps/ephemeral_app_launcher.cc
+++ b/chrome/browser/apps/ephemeral_app_launcher.cc
@@ -319,7 +319,7 @@ void EphemeralAppLauncher::CheckEphemeralInstallPermitted() {
install_checker_ = CreateInstallChecker();
DCHECK(install_checker_.get());
- install_checker_->set_extension(extension);
+ install_checker_->set_extension(extension.get());
install_checker_->Start(ExtensionInstallChecker::CHECK_BLACKLIST |
ExtensionInstallChecker::CHECK_REQUIREMENTS,
true,
@@ -404,7 +404,7 @@ bool EphemeralAppLauncher::CheckRequestorPermitted(
}
void EphemeralAppLauncher::OnManifestParsed() {
- const Extension* extension = GetLocalizedExtensionForDisplay();
+ const scoped_refptr<Extension> extension = GetLocalizedExtensionForDisplay();
dcheng 2014/08/26 00:18:25 Note: this variable type was rewritten instead of
benwells 2014/08/26 05:22:22 From looking at the impl, it looks like this is ri
if (!extension) {
benwells 2014/08/26 05:22:21 Does this function need changes so it isn't doing
dcheng 2014/08/26 05:28:06 Yeah, I was fixing it locally since I just noticed
AbortLaunch(webstore_install::INVALID_MANIFEST, kInvalidManifestError);
return;
« no previous file with comments | « chrome/browser/apps/drive/drive_app_provider_browsertest.cc ('k') | chrome/browser/apps/ephemeral_app_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698