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

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

Issue 10907104: Support an --install-from-webstore command line switch (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebased Created 8 years, 3 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
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/startup_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extension_install_dialog.h" 5 #include "chrome/browser/extensions/extension_install_dialog.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void ShowExtensionInstallDialog(gfx::NativeWindow parent, 62 void ShowExtensionInstallDialog(gfx::NativeWindow parent,
63 content::PageNavigator* navigator, 63 content::PageNavigator* navigator,
64 ExtensionInstallPrompt::Delegate* delegate, 64 ExtensionInstallPrompt::Delegate* delegate,
65 const ExtensionInstallPrompt::Prompt& prompt) { 65 const ExtensionInstallPrompt::Prompt& prompt) {
66 AutoConfirmForTest auto_confirm = CheckAutoConfirmCommandLineSwitch(); 66 AutoConfirmForTest auto_confirm = CheckAutoConfirmCommandLineSwitch();
67 if (auto_confirm != DO_NOT_SKIP) { 67 if (auto_confirm != DO_NOT_SKIP) {
68 DoAutoConfirm(auto_confirm, delegate); 68 DoAutoConfirm(auto_confirm, delegate);
69 return; 69 return;
70 } 70 }
71 if (!parent) {
72 delegate->InstallUIAbort(false);
73 return;
74 }
75 ShowExtensionInstallDialogImpl(parent, navigator, delegate, prompt); 71 ShowExtensionInstallDialogImpl(parent, navigator, delegate, prompt);
76 } 72 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/startup_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698