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

Side by Side Diff: chrome/browser/extensions/unpacked_installer.cc

Issue 16295003: 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: Rebased Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/unpacked_installer.h" 5 #include "chrome/browser/extensions/unpacked_installer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 extension_(extension), 60 extension_(extension),
61 callback_(callback) { 61 callback_(callback) {
62 } 62 }
63 63
64 SimpleExtensionLoadPrompt::~SimpleExtensionLoadPrompt() { 64 SimpleExtensionLoadPrompt::~SimpleExtensionLoadPrompt() {
65 } 65 }
66 66
67 void SimpleExtensionLoadPrompt::ShowPrompt() { 67 void SimpleExtensionLoadPrompt::ShowPrompt() {
68 install_ui_->ConfirmInstall( 68 install_ui_->ConfirmInstall(
69 this, 69 this,
70 extension_, 70 extension_.get(),
71 ExtensionInstallPrompt::GetDefaultShowDialogCallback()); 71 ExtensionInstallPrompt::GetDefaultShowDialogCallback());
72 } 72 }
73 73
74 void SimpleExtensionLoadPrompt::InstallUIProceed() { 74 void SimpleExtensionLoadPrompt::InstallUIProceed() {
75 callback_.Run(); 75 callback_.Run();
76 delete this; 76 delete this;
77 } 77 }
78 78
79 void SimpleExtensionLoadPrompt::InstallUIAbort(bool user_initiated) { 79 void SimpleExtensionLoadPrompt::InstallUIAbort(bool user_initiated) {
80 delete this; 80 delete this;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 perms_updater.GrantActivePermissions(installer_.extension()); 282 perms_updater.GrantActivePermissions(installer_.extension());
283 283
284 service_weak_->OnExtensionInstalled( 284 service_weak_->OnExtensionInstalled(
285 installer_.extension(), 285 installer_.extension(),
286 syncer::StringOrdinal(), 286 syncer::StringOrdinal(),
287 false /* no requirement errors */, 287 false /* no requirement errors */,
288 false /* don't wait for idle */); 288 false /* don't wait for idle */);
289 } 289 }
290 290
291 } // namespace extensions 291 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_prefs.cc ('k') | chrome/browser/extensions/updater/extension_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698