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

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

Issue 556095: Changes to support new cookie policy.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/gtk/options/advanced_contents_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/preferences_window_controller.mm
===================================================================
--- chrome/browser/cocoa/preferences_window_controller.mm (revision 37613)
+++ chrome/browser/cocoa/preferences_window_controller.mm (working copy)
@@ -45,7 +45,6 @@
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
-#include "net/base/cookie_policy.h"
#import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
#import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
@@ -1471,17 +1470,7 @@
// Sets the backend pref for whether or not to accept cookies based on |index|.
- (void)setCookieBehavior:(NSInteger)index {
- net::CookiePolicy::Type policy = net::CookiePolicy::ALLOW_ALL_COOKIES;
- if (net::CookiePolicy::ValidType(index))
- policy = net::CookiePolicy::FromInt(index);
- const char* kUserMetrics[] = {
- "Options_AllowAllCookies",
- "Options_BlockThirdPartyCookies",
- "Options_BlockAllCookies"
- };
- DCHECK(policy >= 0 && (unsigned int)policy < arraysize(kUserMetrics));
- [self recordUserAction:kUserMetrics[policy]];
- cookieBehavior_.SetValue(policy);
+ // TODO(darin): Remove everything else related to this setter.
}
- (NSURL*)defaultDownloadLocation {
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/gtk/options/advanced_contents_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698