diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 21:29:10 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 21:29:10 +0000 |
commit | e313f3b11360902a3da9b3b1cc0df2a4792d0867 (patch) | |
tree | 609e260af0138ff982d26f80c22f5beec7e3efc2 /chrome/browser/platform_util_win.cc | |
parent | d5c7934b36545f324df7d2f47527c41653b26771 (diff) | |
download | chromium_src-e313f3b11360902a3da9b3b1cc0df2a4792d0867.zip chromium_src-e313f3b11360902a3da9b3b1cc0df2a4792d0867.tar.gz chromium_src-e313f3b11360902a3da9b3b1cc0df2a4792d0867.tar.bz2 |
Make a new yes/no messagebox wrapper function, use it in the bookmark alert.
Recommitting of r46101.
BUG=http://crbug.com/34481; http://crbug.com/40011
TEST=on Mac/ChromeOS, have at least 15 bookmarks on bookmarks bar or other bookmarks,
right click on one of those and click on Open all bookmarks. A confirmation
dialog box should be shown. No other visible change.
Review URL: http://codereview.chromium.org/1745024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50894 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/platform_util_win.cc')
-rw-r--r-- | chrome/browser/platform_util_win.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/platform_util_win.cc b/chrome/browser/platform_util_win.cc index cef8155e..9b0a12c 100644 --- a/chrome/browser/platform_util_win.cc +++ b/chrome/browser/platform_util_win.cc @@ -158,6 +158,13 @@ void SimpleErrorBox(gfx::NativeWindow parent, win_util::MessageBox(parent, message, title, MB_OK | MB_SETFOREGROUND); } +bool SimpleYesNoBox(gfx::NativeWindow parent, + const string16& title, + const string16& message) { + return win_util::MessageBox(parent, message.c_str(), title.c_str(), + MB_YESNO | MB_ICONWARNING | MB_SETFOREGROUND) == IDYES; +} + string16 GetVersionStringModifier() { #if defined(GOOGLE_CHROME_BUILD) FilePath module; |