summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cookie_modal_dialog.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 17:00:51 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 17:00:51 +0000
commitbe6354f978d56dd8237d3ac9bcf8bb76cdd0cb57 (patch)
tree09cda907cbfecc852b92e68017bd833156e332a4 /chrome/browser/cookie_modal_dialog.cc
parent86b3ea336404f6248e3d8b63be219c5ba100f9d4 (diff)
downloadchromium_src-be6354f978d56dd8237d3ac9bcf8bb76cdd0cb57.zip
chromium_src-be6354f978d56dd8237d3ac9bcf8bb76cdd0cb57.tar.gz
chromium_src-be6354f978d56dd8237d3ac9bcf8bb76cdd0cb57.tar.bz2
Couple of tweaks to the cookie prompt dialog:
. Fixes bug that lead to randomly expanding and not (expanded_view_ wasn't in the member initializer list). . Fixed bug where expanding/collapsing would result in dialog changing to wrong size. . Persist expanded state to prefs. BUG=35092, 35165 TEST=see bugs Review URL: http://codereview.chromium.org/595014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cookie_modal_dialog.cc')
-rw-r--r--chrome/browser/cookie_modal_dialog.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/cookie_modal_dialog.cc b/chrome/browser/cookie_modal_dialog.cc
index eea617d..5bd46fa 100644
--- a/chrome/browser/cookie_modal_dialog.cc
+++ b/chrome/browser/cookie_modal_dialog.cc
@@ -5,6 +5,8 @@
#include "chrome/browser/cookie_modal_dialog.h"
#include "chrome/browser/views/cookie_prompt_view.h"
+#include "chrome/common/pref_names.h"
+#include "chrome/common/pref_service.h"
CookiePromptModalDialog::CookiePromptModalDialog(
TabContents* tab_contents,
@@ -29,4 +31,7 @@ CookiePromptModalDialog::CookiePromptModalDialog(
delegate_(delegate) {
}
-
+// static
+void CookiePromptModalDialog::RegisterPrefs(PrefService* prefs) {
+ prefs->RegisterBooleanPref(prefs::kCookiePromptExpanded, false);
+}