Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: chrome/browser/cookie_modal_dialog.cc

Issue 597061: Make the setItem CONTENT_SETTING_ASK dialog more useful by showing the actual... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/cookie_modal_dialog.h" 5 #include "chrome/browser/cookie_modal_dialog.h"
6 6
7 #include "chrome/browser/views/cookie_prompt_view.h" 7 #include "chrome/browser/views/cookie_prompt_view.h"
8 #include "chrome/common/pref_names.h" 8 #include "chrome/common/pref_names.h"
9 #include "chrome/common/pref_service.h" 9 #include "chrome/common/pref_service.h"
10 10
11 CookiePromptModalDialog::CookiePromptModalDialog( 11 CookiePromptModalDialog::CookiePromptModalDialog(
12 TabContents* tab_contents, 12 TabContents* tab_contents,
13 const std::string& host, 13 const std::string& host,
14 const std::string& cookie_line, 14 const std::string& cookie_line,
15 CookiePromptModalDialogDelegate* delegate) 15 CookiePromptModalDialogDelegate* delegate)
16 : AppModalDialog(tab_contents, std::wstring()), 16 : AppModalDialog(tab_contents, std::wstring()),
17 dialog_type_(DIALOG_TYPE_COOKIE),
17 host_(host), 18 host_(host),
18 cookie_line_(cookie_line), 19 cookie_line_(cookie_line),
19 cookie_ui_(true),
20 delegate_(delegate) { 20 delegate_(delegate) {
21 } 21 }
22 22
23 23
24 CookiePromptModalDialog::CookiePromptModalDialog( 24 CookiePromptModalDialog::CookiePromptModalDialog(
25 TabContents* tab_contents, 25 TabContents* tab_contents,
26 const BrowsingDataLocalStorageHelper::LocalStorageInfo& storage_info, 26 const std::string& host,
27 const string16& key,
28 const string16& value,
27 CookiePromptModalDialogDelegate* delegate) 29 CookiePromptModalDialogDelegate* delegate)
28 : AppModalDialog(tab_contents, std::wstring()), 30 : AppModalDialog(tab_contents, std::wstring()),
29 storage_info_(storage_info), 31 dialog_type_(DIALOG_TYPE_LOCAL_STORAGE),
30 cookie_ui_(false), 32 host_(host),
33 local_storage_key_(key),
34 local_storage_value_(value),
31 delegate_(delegate) { 35 delegate_(delegate) {
32 } 36 }
33 37
34 // static 38 // static
35 void CookiePromptModalDialog::RegisterPrefs(PrefService* prefs) { 39 void CookiePromptModalDialog::RegisterPrefs(PrefService* prefs) {
36 prefs->RegisterBooleanPref(prefs::kCookiePromptExpanded, false); 40 prefs->RegisterBooleanPref(prefs::kCookiePromptExpanded, false);
37 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698