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

Unified Diff: chrome/browser/extensions/extensions_service.cc

Issue 125077: Use GetForegroundWindow instead of GetActiveWindow because the former works o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extensions_service.cc
===================================================================
--- chrome/browser/extensions/extensions_service.cc (revision 18263)
+++ chrome/browser/extensions/extensions_service.cc (working copy)
@@ -899,7 +899,7 @@
if (!frontend_->extensions_enabled() && !extension.IsTheme()) {
#if defined(OS_WIN)
if (frontend_->show_extensions_prompts()) {
- win_util::MessageBox(GetActiveWindow(),
+ win_util::MessageBox(GetForegroundWindow(),
L"Extensions are not enabled. Add --enable-extensions to the "
L"command-line to enable extensions.\n\n"
L"This is a temporary message and it will be removed when extensions "
@@ -915,7 +915,7 @@
#if defined(OS_WIN)
if (!extension.IsTheme() && !from_external &&
frontend_->show_extensions_prompts() &&
- win_util::MessageBox(GetActiveWindow(),
+ win_util::MessageBox(GetForegroundWindow(),
L"Are you sure you want to install this extension?\n\n"
L"This is a temporary message and it will be removed when extensions "
L"UI is finalized.",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698