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

Unified Diff: chrome/browser/ui/views/cookie_info_view.cc

Issue 1024503002: Add cookies' first-partyness to chrome://settings/cookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/ui/views/cookie_info_view.cc
diff --git a/chrome/browser/ui/views/cookie_info_view.cc b/chrome/browser/ui/views/cookie_info_view.cc
index a22f30257566f90cf3ac79fba4442523a3f4469e..9f157587071c48a89c6bf0222750e6e2027329e3 100644
--- a/chrome/browser/ui/views/cookie_info_view.cc
+++ b/chrome/browser/ui/views/cookie_info_view.cc
@@ -63,9 +63,13 @@ void CookieInfoView::SetCookie(const std::string& domain,
l10n_util::GetStringUTF16(IDS_COOKIES_COOKIE_EXPIRES_SESSION);
expires_value_field_->SetText(expire_text);
- send_for_value_field_->SetText(cookie.IsSecure() ?
- l10n_util::GetStringUTF16(IDS_COOKIES_COOKIE_SENDFOR_SECURE) :
- l10n_util::GetStringUTF16(IDS_COOKIES_COOKIE_SENDFOR_ANY));
+ send_for_value_field_->SetText(l10n_util::GetStringUTF16(
+ cookie.IsSecure()
+ ? cookie.IsFirstPartyOnly()
+ ? IDS_COOKIES_COOKIE_SENDFOR_SECURE_FIRSTPARTY
+ : IDS_COOKIES_COOKIE_SENDFOR_SECURE
+ : cookie.IsFirstPartyOnly() ? IDS_COOKIES_COOKIE_SENDFOR_FIRSTPARTY
+ : IDS_COOKIES_COOKIE_SENDFOR_ANY));
Pam (message me for reviews) 2015/03/20 10:30:38 Oh dear. There aren't any really great solutions h
EnableCookieDisplay(true);
Layout();
}

Powered by Google App Engine
This is Rietveld 408576698