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

Unified Diff: chrome/browser/cocoa/cookie_details.mm

Issue 3299020: Remove vestigial cookie/web app permissions prompting UI now that the async U... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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/cocoa/cookie_details.mm
===================================================================
--- chrome/browser/cocoa/cookie_details.mm (revision 59533)
+++ chrome/browser/cocoa/cookie_details.mm (working copy)
@@ -8,7 +8,6 @@
#import "base/i18n/time_formatting.h"
#include "base/sys_string_conversions.h"
#include "grit/generated_resources.h"
-#include "chrome/browser/cookie_modal_dialog.h"
#include "chrome/browser/cookies_tree_model.h"
#include "webkit/appcache/appcache_service.h"
@@ -256,39 +255,6 @@
}
}
-+ (CocoaCookieDetails*)createFromPromptModalDialog:(CookiePromptModalDialog*)
- dialog {
- CookiePromptModalDialog::DialogType type(dialog->dialog_type());
- CocoaCookieDetails* details = nil;
- if (type == CookiePromptModalDialog::DIALOG_TYPE_COOKIE) {
- net::CookieMonster::ParsedCookie pc(dialog->cookie_line());
- net::CookieMonster::CanonicalCookie cookie(dialog->origin(), pc);
- const std::string& domain(pc.HasDomain() ? pc.Domain() :
- dialog->origin().host());
- NSString* domainString = base::SysUTF8ToNSString(domain);
- details = [[CocoaCookieDetails alloc] initWithCookie:&cookie
- origin:domainString
- canEditExpiration:YES];
- } else if (type == CookiePromptModalDialog::DIALOG_TYPE_LOCAL_STORAGE) {
- details = [[CocoaCookieDetails alloc]
- initWithLocalStorage:dialog->origin().host()
- key:dialog->local_storage_key()
- value:dialog->local_storage_value()];
- } else if (type == CookiePromptModalDialog::DIALOG_TYPE_DATABASE) {
- details = [[CocoaCookieDetails alloc]
- initWithDatabase:dialog->origin().host()
- databaseName:dialog->database_name()
- databaseDescription:dialog->display_name()
- fileSize:dialog->estimated_size()];
- } else if (type == CookiePromptModalDialog::DIALOG_TYPE_APPCACHE) {
- details = [[CocoaCookieDetails alloc]
- initWithAppCacheManifestURL:dialog->appcache_manifest_url().spec()];
- } else {
- NOTIMPLEMENTED();
- }
- return [details autorelease];
-}
-
@end
#pragma mark Content Object Adapter

Powered by Google App Engine
This is Rietveld 408576698