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

Unified Diff: chrome/browser/platform_util_win.cc

Issue 7601014: browser: Abstract message box dialog functions into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile on linux_view? Created 9 years, 4 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 | « chrome/browser/platform_util_mac.mm ('k') | chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/platform_util_win.cc
diff --git a/chrome/browser/platform_util_win.cc b/chrome/browser/platform_util_win.cc
index a5492132a8526f4bc04b1af076de2dfbdd14f655..a11cc13cc8b18024cbb7f5aab6f21617628672ea 100644
--- a/chrome/browser/platform_util_win.cc
+++ b/chrome/browser/platform_util_win.cc
@@ -18,7 +18,6 @@
#include "base/win/scoped_comptr.h"
#include "chrome/common/scoped_co_mem.h"
#include "googleurl/src/gurl.h"
-#include "ui/base/message_box_win.h"
#include "ui/base/win/shell.h"
#include "ui/gfx/native_widget_types.h"
@@ -177,18 +176,4 @@ bool IsVisible(gfx::NativeView view) {
return ::IsWindowVisible(view) != 0;
}
-void SimpleErrorBox(gfx::NativeWindow parent,
- const string16& title,
- const string16& message) {
- ui::MessageBox(parent, message, title,
- MB_OK | MB_SETFOREGROUND | MB_ICONWARNING | MB_TOPMOST);
-}
-
-bool SimpleYesNoBox(gfx::NativeWindow parent,
- const string16& title,
- const string16& message) {
- return ui::MessageBox(parent, message.c_str(), title.c_str(),
- MB_YESNO | MB_ICONWARNING | MB_SETFOREGROUND) == IDYES;
-}
-
} // namespace platform_util
« no previous file with comments | « chrome/browser/platform_util_mac.mm ('k') | chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698