diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-08 21:10:55 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-08 21:10:55 +0000 |
commit | 45134197a411fd9e02986c9e11d7b6d876891f23 (patch) | |
tree | c46c08306d7424b3a607ca0d06b2742d7e879c68 /chrome/browser/cookie_modal_dialog.cc | |
parent | 7d74aaab9390a7502dac835ddcd2a5175224702e (diff) | |
download | chromium_src-45134197a411fd9e02986c9e11d7b6d876891f23.zip chromium_src-45134197a411fd9e02986c9e11d7b6d876891f23.tar.gz chromium_src-45134197a411fd9e02986c9e11d7b6d876891f23.tar.bz2 |
Show an app modal dialog when the cookie policy is ASK.
This hooks up the dialog for cookies and localstorage. It also includes
support for remembering the decision, and in the case of cookies, support is
added for forcing a cookie to be a stored as a session cookie.
BUG=34625,34572
Review URL: http://codereview.chromium.org/583004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38393 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cookie_modal_dialog.cc')
-rw-r--r-- | chrome/browser/cookie_modal_dialog.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/cookie_modal_dialog.cc b/chrome/browser/cookie_modal_dialog.cc index c6ccdc1..eea617d 100644 --- a/chrome/browser/cookie_modal_dialog.cc +++ b/chrome/browser/cookie_modal_dialog.cc @@ -5,15 +5,14 @@ #include "chrome/browser/cookie_modal_dialog.h" #include "chrome/browser/views/cookie_prompt_view.h" -#include "googleurl/src/gurl.h" CookiePromptModalDialog::CookiePromptModalDialog( TabContents* tab_contents, - const GURL& url, + const std::string& host, const std::string& cookie_line, CookiePromptModalDialogDelegate* delegate) : AppModalDialog(tab_contents, std::wstring()), - url_(url), + host_(host), cookie_line_(cookie_line), cookie_ui_(true), delegate_(delegate) { |