summaryrefslogtreecommitdiffstats
path: root/chrome/browser/message_box_handler.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-23 19:35:09 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-23 19:35:09 +0000
commitbcace2312fa983e395424605f1929859279ed9d3 (patch)
tree1a3534c77628688729c5efe740c3f889530d6cee /chrome/browser/message_box_handler.cc
parent4334bcb2fafca26d8d7c7ffeed436f44a94568e5 (diff)
downloadchromium_src-bcace2312fa983e395424605f1929859279ed9d3.zip
chromium_src-bcace2312fa983e395424605f1929859279ed9d3.tar.gz
chromium_src-bcace2312fa983e395424605f1929859279ed9d3.tar.bz2
Mac: Cookie confirmation dialog.
This is not the final UI (the "more info" disclosure triangle is missing), but it's pretty close and, more importantly, functional. BUG=34894 TEST=Go to Preferences->under the hood->content settings->cookies and select "ask me every time". Then browser around and note that a message box pops up all the time. All the buttons on the message box should do what they claim. Review URL: http://codereview.chromium.org/650206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39756 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/message_box_handler.cc')
-rw-r--r--chrome/browser/message_box_handler.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/message_box_handler.cc b/chrome/browser/message_box_handler.cc
index 3c249d2..a92bbf7 100644
--- a/chrome/browser/message_box_handler.cc
+++ b/chrome/browser/message_box_handler.cc
@@ -63,13 +63,12 @@ void RunCookiePrompt(TabContents* tab_contents,
const GURL& origin,
const std::string& cookie_line,
CookiePromptModalDialogDelegate* delegate) {
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_MACOSX)
Singleton<AppModalDialogQueue>()->AddDialog(
new CookiePromptModalDialog(tab_contents, host_content_settings_map,
origin, cookie_line, delegate));
#else
// Linux: http://crbug.com/35178
- // Mac: http://crbug.com/34894
NOTIMPLEMENTED();
delegate->BlockSiteData();
#endif
@@ -82,13 +81,12 @@ void RunLocalStoragePrompt(
const string16& key,
const string16& value,
CookiePromptModalDialogDelegate* delegate) {
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_MACOSX)
Singleton<AppModalDialogQueue>()->AddDialog(
new CookiePromptModalDialog(tab_contents, host_content_settings_map,
origin, key, value, delegate));
#else
// Linux: http://crbug.com/35178
- // Mac: http://crbug.com/34894
NOTIMPLEMENTED();
delegate->BlockSiteData();
#endif
@@ -100,13 +98,12 @@ void RunDatabasePrompt(
const GURL& origin,
const string16& database_name,
CookiePromptModalDialogDelegate* delegate) {
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_MACOSX)
Singleton<AppModalDialogQueue>()->AddDialog(
new CookiePromptModalDialog(tab_contents, host_content_settings_map,
origin, database_name, delegate));
#else
// Linux: http://crbug.com/35178
- // Mac: http://crbug.com/34894
NOTIMPLEMENTED();
delegate->BlockSiteData();
#endif