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

Unified Diff: chrome/browser/views/options/advanced_contents_view.cc

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/renderer_host/resource_message_filter.cc ('k') | net/base/cookie_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/options/advanced_contents_view.cc
===================================================================
--- chrome/browser/views/options/advanced_contents_view.cc (revision 37613)
+++ chrome/browser/views/options/advanced_contents_view.cc (working copy)
@@ -44,7 +44,6 @@
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
#include "net/base/ssl_config_service_win.h"
-#include "net/base/cookie_policy.h"
#include "skia/ext/skia_utils_win.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "views/background.h"
@@ -441,44 +440,6 @@
////////////////////////////////////////////////////////////////////////////////
// PrivacySection
-class CookieBehaviorComboModel : public ComboboxModel {
- public:
- CookieBehaviorComboModel() {}
-
- // Return the number of items in the combo box.
- virtual int GetItemCount() {
- return 3;
- }
-
- virtual std::wstring GetItemAt(int index) {
- const int kStringIDs[] = {
- IDS_OPTIONS_COOKIES_ACCEPT_ALL_COOKIES,
- IDS_OPTIONS_COOKIES_RESTRICT_THIRD_PARTY_COOKIES,
- IDS_OPTIONS_COOKIES_BLOCK_ALL_COOKIES
- };
- if (index >= 0 && index < arraysize(kStringIDs))
- return l10n_util::GetString(kStringIDs[index]);
-
- NOTREACHED();
- return L"";
- }
-
- static int CookiePolicyToIndex(net::CookiePolicy::Type policy) {
- return policy;
- }
-
- static net::CookiePolicy::Type IndexToCookiePolicy(int index) {
- if (net::CookiePolicy::ValidType(index))
- return net::CookiePolicy::FromInt(index);
-
- NOTREACHED();
- return net::CookiePolicy::ALLOW_ALL_COOKIES;
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(CookieBehaviorComboModel);
-};
-
class PrivacySection : public AdvancedSection,
public views::ButtonListener,
public views::LinkController {
@@ -512,9 +473,6 @@
views::Checkbox* reporting_enabled_checkbox_;
views::Link* learn_more_link_;
- // Dummy for now. Used to populate cookies models.
- scoped_ptr<CookieBehaviorComboModel> allow_cookies_model_;
-
// Preferences for this section:
BooleanPrefMember alternate_error_pages_;
BooleanPrefMember use_suggest_;
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | net/base/cookie_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698