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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc

Issue 8488012: Fix for management API related to escalated permissions disabled extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased again Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/extensions/extension_install_dialog.h" 9 #include "chrome/browser/extensions/extension_install_dialog.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 void ExtensionInstallDialogView::LinkClicked(views::Link* source, 297 void ExtensionInstallDialogView::LinkClicked(views::Link* source,
298 int event_flags) { 298 int event_flags) {
299 GURL store_url( 299 GURL store_url(
300 extension_urls::GetWebstoreItemDetailURLPrefix() + extension_->id()); 300 extension_urls::GetWebstoreItemDetailURLPrefix() + extension_->id());
301 BrowserList::GetLastActive()->OpenURL( 301 BrowserList::GetLastActive()->OpenURL(
302 store_url, GURL(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK); 302 store_url, GURL(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK);
303 GetWidget()->Close(); 303 GetWidget()->Close();
304 } 304 }
305 305
306 void ShowExtensionInstallDialog( 306 void ShowExtensionInstallDialogImpl(
307 Profile* profile, 307 Profile* profile,
308 ExtensionInstallUI::Delegate* delegate, 308 ExtensionInstallUI::Delegate* delegate,
309 const Extension* extension, 309 const Extension* extension,
310 SkBitmap* icon, 310 SkBitmap* icon,
311 const ExtensionInstallUI::Prompt& prompt) { 311 const ExtensionInstallUI::Prompt& prompt) {
312 #if defined(OS_CHROMEOS) 312 #if defined(OS_CHROMEOS)
313 // Use a tabbed browser window as parent on ChromeOS. 313 // Use a tabbed browser window as parent on ChromeOS.
314 Browser* browser = BrowserList::FindTabbedBrowser(profile, true); 314 Browser* browser = BrowserList::FindTabbedBrowser(profile, true);
315 #else 315 #else
316 Browser* browser = BrowserList::GetLastActiveWithProfile(profile); 316 Browser* browser = BrowserList::GetLastActiveWithProfile(profile);
(...skipping 10 matching lines...) Expand all
327 } 327 }
328 328
329 ExtensionInstallDialogView* dialog = new ExtensionInstallDialogView( 329 ExtensionInstallDialogView* dialog = new ExtensionInstallDialogView(
330 delegate, extension, icon, prompt); 330 delegate, extension, icon, prompt);
331 331
332 views::Widget* window = browser::CreateViewsWindow( 332 views::Widget* window = browser::CreateViewsWindow(
333 browser_window->GetNativeHandle(), dialog); 333 browser_window->GetNativeHandle(), dialog);
334 334
335 window->Show(); 335 window->Show();
336 } 336 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698