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

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: updated comment 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
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);
asargent_no_longer_on_chrome 2012/09/07 21:15:41 FYI, I know for sure that GTK's ShowExtensionInsta
Mihai Parparita -not on Chrome 2012/09/07 22:01:36 OK. We end up using in Widget::CreateWindowWithPar
73 return;
74 }
75 ShowExtensionInstallDialogImpl(parent, navigator, delegate, prompt); 71 ShowExtensionInstallDialogImpl(parent, navigator, delegate, prompt);
76 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698