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

Unified Diff: chrome/browser/importer/importer_host.cc

Issue 10391097: importer: Make use of ShowMessageBox() function in ImporterHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/importer/importer_host.cc
diff --git a/chrome/browser/importer/importer_host.cc b/chrome/browser/importer/importer_host.cc
index 71387114dc0feb7480756a5a8dcc24157eab434a..bff8dfef2d05eaae7becf7f71787089a705b2e2e 100644
--- a/chrome/browser/importer/importer_host.cc
+++ b/chrome/browser/importer/importer_host.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/ui/browser_list.h"
+#include "chrome/browser/ui/simple_message_box.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/browser_thread.h"
@@ -28,11 +29,6 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
-#if defined(OS_WIN)
-// TODO(port): Port this file.
-#include "ui/base/win/message_box_win.h"
-#endif
-
using content::BrowserThread;
ImporterHost::ImporterHost()
@@ -161,12 +157,9 @@ void ImporterHost::StartImportSettings(
void ImporterHost::OnGoogleGAIACookieChecked(bool result) {
#if defined(OS_WIN)
if (!result) {
- ui::MessageBox(
- NULL,
- UTF16ToWide(l10n_util::GetStringUTF16(
- IDS_IMPORTER_GOOGLE_LOGIN_TEXT)).c_str(),
- L"",
- MB_OK | MB_TOPMOST);
+ browser::ShowMessageBox(NULL,
+ l10n_util::GetStringUTF16(IDS_IMPORTER_GOOGLE_LOGIN_TEXT), string16(),
+ browser::MESSAGE_BOX_TYPE_INFORMATION);
GURL url("https://accounts.google.com/ServiceLogin");
DCHECK(profile_);
« 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