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

Side by Side Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.cc

Issue 382133003: Refactored ExtensionUninstallDialog to take a NativeWindow instead of a Browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback & todos for unfixed issues Created 6 years, 5 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/ui/webui/extensions/extension_settings_handler.cc ('k') | no next file » | 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/ui/webui/ntp/app_launcher_handler.h" 5 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "apps/metrics_names.h" 9 #include "apps/metrics_names.h"
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 CleanupAfterUninstall(); 832 CleanupAfterUninstall();
833 } 833 }
834 834
835 extensions::ExtensionUninstallDialog* 835 extensions::ExtensionUninstallDialog*
836 AppLauncherHandler::GetExtensionUninstallDialog() { 836 AppLauncherHandler::GetExtensionUninstallDialog() {
837 if (!extension_uninstall_dialog_.get()) { 837 if (!extension_uninstall_dialog_.get()) {
838 Browser* browser = chrome::FindBrowserWithWebContents( 838 Browser* browser = chrome::FindBrowserWithWebContents(
839 web_ui()->GetWebContents()); 839 web_ui()->GetWebContents());
840 extension_uninstall_dialog_.reset( 840 extension_uninstall_dialog_.reset(
841 extensions::ExtensionUninstallDialog::Create( 841 extensions::ExtensionUninstallDialog::Create(
842 extension_service_->profile(), browser, this)); 842 extension_service_->profile(),
843 browser->window()->GetNativeWindow(),
844 this));
843 } 845 }
844 return extension_uninstall_dialog_.get(); 846 return extension_uninstall_dialog_.get();
845 } 847 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698