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

Unified Diff: chrome/browser/extensions/sandboxed_unpacker.cc

Issue 13949011: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « chrome/browser/extensions/requirements_checker.cc ('k') | chrome/browser/extensions/startup_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/sandboxed_unpacker.cc
diff --git a/chrome/browser/extensions/sandboxed_unpacker.cc b/chrome/browser/extensions/sandboxed_unpacker.cc
index 527cd341c5278be9350a94ee4dd538dd2d541d2d..1f844f0de3ddc8153ef7db1c33a1ac079000c324 100644
--- a/chrome/browser/extensions/sandboxed_unpacker.cc
+++ b/chrome/browser/extensions/sandboxed_unpacker.cc
@@ -344,7 +344,7 @@ void SandboxedUnpacker::OnUnpackExtensionSucceeded(
got_response_ = true;
scoped_ptr<DictionaryValue> final_manifest(RewriteManifestFile(manifest));
- if (!final_manifest.get())
+ if (!final_manifest)
return;
// Create an extension object that refers to the temporary location the
@@ -376,7 +376,7 @@ void SandboxedUnpacker::OnUnpackExtensionSucceeded(
&utf8_error);
- if (!extension_.get()) {
+ if (!extension_) {
ReportFailure(
INVALID_MANIFEST,
ASCIIToUTF16("Manifest is invalid: " + utf8_error));
@@ -451,7 +451,7 @@ bool SandboxedUnpacker::ValidateSignature() {
CrxFile::Error error;
scoped_ptr<CrxFile> crx(CrxFile::Parse(header, &error));
- if (!crx.get()) {
+ if (!crx) {
switch (error) {
case CrxFile::kWrongMagic:
ReportFailure(
« no previous file with comments | « chrome/browser/extensions/requirements_checker.cc ('k') | chrome/browser/extensions/startup_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698