diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 05:02:06 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 05:02:06 +0000 |
commit | b3ffd3bafc7f136c00b16b06c7c39d446303ceb2 (patch) | |
tree | 89959747a9cdf47f134804efb0da06d4a19da35d /chrome/browser/message_box_handler.cc | |
parent | 5aaa076c87d38272ee9e38ed827b8d4ad2777c05 (diff) | |
download | chromium_src-b3ffd3bafc7f136c00b16b06c7c39d446303ceb2.zip chromium_src-b3ffd3bafc7f136c00b16b06c7c39d446303ceb2.tar.gz chromium_src-b3ffd3bafc7f136c00b16b06c7c39d446303ceb2.tar.bz2 |
Small preparation for the cookie confirmation dialog on linux/osx.
BUG=34894,35178
Review URL: http://codereview.chromium.org/650204
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/message_box_handler.cc')
-rw-r--r-- | chrome/browser/message_box_handler.cc | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/chrome/browser/message_box_handler.cc b/chrome/browser/message_box_handler.cc index 6b9fa93..3c249d2 100644 --- a/chrome/browser/message_box_handler.cc +++ b/chrome/browser/message_box_handler.cc @@ -58,15 +58,21 @@ void RunBeforeUnloadDialog(TabContents* tab_contents, std::wstring(), false, true, reply_msg)); } -#if defined(OS_WIN) void RunCookiePrompt(TabContents* tab_contents, HostContentSettingsMap* host_content_settings_map, const GURL& origin, const std::string& cookie_line, CookiePromptModalDialogDelegate* delegate) { +#if defined(OS_WIN) 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 } void RunLocalStoragePrompt( @@ -76,9 +82,16 @@ void RunLocalStoragePrompt( const string16& key, const string16& value, CookiePromptModalDialogDelegate* delegate) { +#if defined(OS_WIN) 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 } void RunDatabasePrompt( @@ -87,9 +100,14 @@ void RunDatabasePrompt( const GURL& origin, const string16& database_name, CookiePromptModalDialogDelegate* delegate) { +#if defined(OS_WIN) 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 - +} |