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

Unified Diff: chrome/browser/in_process_webkit/dom_storage_permission_request.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/in_process_webkit/dom_storage_permission_request.cc
===================================================================
--- chrome/browser/in_process_webkit/dom_storage_permission_request.cc (revision 38896)
+++ chrome/browser/in_process_webkit/dom_storage_permission_request.cc (working copy)
@@ -9,14 +9,12 @@
DOMStoragePermissionRequest::DOMStoragePermissionRequest(
const GURL& url,
- bool file_exists,
- int64 size,
- base::Time last_modified,
+ const string16& key,
+ const string16& value,
HostContentSettingsMap* settings)
: url_(url),
- file_exists_(file_exists),
- size_(size),
- last_modified_(last_modified),
+ key_(key),
+ value_(value),
event_(true, false), // manual reset, not initially signaled
host_content_settings_map_(settings) {
}
@@ -62,15 +60,9 @@
// showed the name and value being stored (as is done for cookies).
const std::string& host = dom_storage_permission_request->url().host();
RunLocalStoragePrompt(browser->GetSelectedTabContents(),
- BrowsingDataLocalStorageHelper::LocalStorageInfo(
- std::string(),
- host,
- -1,
- std::string(),
- host,
- FilePath(),
- dom_storage_permission_request->size(),
- dom_storage_permission_request->last_modified()),
+ dom_storage_permission_request->url().host(),
darin (slow to review) 2010/02/12 20:55:52 in http://codereview.chromium.org/597031, i actual
jorlow 2010/02/12 21:22:42 I'll switch it over to a GURL.
+ dom_storage_permission_request->key(),
+ dom_storage_permission_request->value(),
dom_storage_permission_request);
#else
// TODO(darin): Enable prompting for other ports.

Powered by Google App Engine
This is Rietveld 408576698