summaryrefslogtreecommitdiffstats
path: root/chrome/common/platform_util_win.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 20:28:54 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 20:28:54 +0000
commitae3968b3e76f0fd95b9a34c762e936f0bfde65d3 (patch)
tree8351655753593306a3c79c46d081c3664ede1803 /chrome/common/platform_util_win.cc
parent69094b326c659f5d6d3d20bad0815af9efff3950 (diff)
downloadchromium_src-ae3968b3e76f0fd95b9a34c762e936f0bfde65d3.zip
chromium_src-ae3968b3e76f0fd95b9a34c762e936f0bfde65d3.tar.gz
chromium_src-ae3968b3e76f0fd95b9a34c762e936f0bfde65d3.tar.bz2
Add platform abstraction for simple error box, and use it in a couple extensions-related places.
Also add a virtual destructor in some unrelated infobar. BUG=27691 Review URL: http://codereview.chromium.org/427002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/platform_util_win.cc')
-rw-r--r--chrome/common/platform_util_win.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/platform_util_win.cc b/chrome/common/platform_util_win.cc
index 63a4b23..1b1b666 100644
--- a/chrome/common/platform_util_win.cc
+++ b/chrome/common/platform_util_win.cc
@@ -151,4 +151,10 @@ bool IsVisible(gfx::NativeView view) {
return ::IsWindowVisible(view) != 0;
}
+void SimpleErrorBox(gfx::NativeWindow parent,
+ const string16& title,
+ const string16& message) {
+ win_util::MessageBox(parent, message, title, MB_OK | MB_SETFOREGROUND);
+}
+
} // namespace platform_util