Index: chrome/browser/browser_main_win.cc |
diff --git a/chrome/browser/browser_main_win.cc b/chrome/browser/browser_main_win.cc |
index 56b20a477e16402fb8c1c2f47d4ac0157d974962..6616894cb9000ac82fc79d0c13d9cbc1f54bc9c4 100644 |
--- a/chrome/browser/browser_main_win.cc |
+++ b/chrome/browser/browser_main_win.cc |
@@ -10,7 +10,6 @@ |
#include <algorithm> |
-#include "app/win/win_util.h" |
#include "base/command_line.h" |
#include "base/environment.h" |
#include "base/i18n/rtl.h" |
@@ -37,6 +36,7 @@ |
#include "net/socket/ssl_client_socket_nss_factory.h" |
#include "ui/base/l10n/l10n_util.h" |
#include "ui/base/l10n/l10n_util_win.h" |
+#include "ui/base/message_box_win.h" |
#include "views/focus/accelerator_handler.h" |
#include "views/window/window.h" |
@@ -57,8 +57,7 @@ void WarnAboutMinimumSystemRequirements() { |
const string16 text = |
l10n_util::GetStringUTF16(IDS_UNSUPPORTED_OS_PRE_WIN_XP); |
const string16 caption = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); |
- app::win::MessageBox(NULL, text, caption, |
- MB_OK | MB_ICONWARNING | MB_TOPMOST); |
+ ui::MessageBox(NULL, text, caption, MB_OK | MB_ICONWARNING | MB_TOPMOST); |
} |
} |
@@ -75,7 +74,7 @@ void ShowCloseBrowserFirstMessageBox() { |
const string16 text = l10n_util::GetStringUTF16(IDS_UNINSTALL_CLOSE_APP); |
const string16 caption = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); |
const UINT flags = MB_OK | MB_ICONWARNING | MB_TOPMOST; |
- app::win::MessageBox(NULL, text, caption, flags); |
+ ui::MessageBox(NULL, text, caption, flags); |
} |
int DoUninstallTasks(bool chrome_still_running) { |
@@ -167,7 +166,7 @@ int HandleIconsCommands(const CommandLine &parsed_command_line) { |
l10n_util::GetStringFUTF16(IDS_HIDE_ICONS_NOT_SUPPORTED, cp_applet); |
const string16 caption = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); |
const UINT flags = MB_OKCANCEL | MB_ICONWARNING | MB_TOPMOST; |
- if (IDOK == app::win::MessageBox(NULL, msg, caption, flags)) |
+ if (IDOK == ui::MessageBox(NULL, msg, caption, flags)) |
ShellExecute(NULL, NULL, L"appwiz.cpl", NULL, NULL, SW_SHOWNORMAL); |
return ResultCodes::NORMAL_EXIT; // Exit as we are not launching browser. |
} |
@@ -194,7 +193,7 @@ bool CheckMachineLevelInstall() { |
l10n_util::GetStringUTF16(IDS_MACHINE_LEVEL_INSTALL_CONFLICT); |
const string16 caption = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); |
const UINT flags = MB_OK | MB_ICONERROR | MB_TOPMOST; |
- app::win::MessageBox(NULL, text, caption, flags); |
+ ui::MessageBox(NULL, text, caption, flags); |
FilePath uninstall_path(InstallUtil::GetChromeUninstallCmd(false, dist)); |
CommandLine uninstall_cmd(uninstall_path); |
if (!uninstall_cmd.GetProgram().value().empty()) { |