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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 6207005: Clarify wording around blocking 3rd party cookies and add lab to block reading of 3rd party cookies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 kOsWin, 266 kOsWin,
267 MULTI_VALUE_TYPE(kInstantChoices) 267 MULTI_VALUE_TYPE(kInstantChoices)
268 }, 268 },
269 { 269 {
270 "instant-autocomplete-immediately", // FLAGS:RECORD_UMA 270 "instant-autocomplete-immediately", // FLAGS:RECORD_UMA
271 IDS_FLAGS_INSTANT_AUTOCOMPLETE_IMMEDIATELY_NAME, 271 IDS_FLAGS_INSTANT_AUTOCOMPLETE_IMMEDIATELY_NAME,
272 IDS_FLAGS_INSTANT_AUTOCOMPLETE_IMMEDIATELY_DESCRIPTION, 272 IDS_FLAGS_INSTANT_AUTOCOMPLETE_IMMEDIATELY_DESCRIPTION,
273 kOsWin | kOsLinux, 273 kOsWin | kOsLinux,
274 SINGLE_VALUE_TYPE(switches::kInstantAutocompleteImmediately) 274 SINGLE_VALUE_TYPE(switches::kInstantAutocompleteImmediately)
275 }, 275 },
276 {
277 "block-reading-third-party-cookies",
278 IDS_FLAGS_BLOCK_ALL_THIRD_PARTY_COOKIES_NAME,
279 IDS_FLAGS_BLOCK_ALL_THIRD_PARTY_COOKIES_DESCRIPTION,
280 kOsAll,
281 SINGLE_VALUE_TYPE(switches::kBlockReadingThirdPartyCookies)
282 },
276 }; 283 };
277 284
278 const Experiment* experiments = kExperiments; 285 const Experiment* experiments = kExperiments;
279 size_t num_experiments = arraysize(kExperiments); 286 size_t num_experiments = arraysize(kExperiments);
280 287
281 // Stores and encapsulates the little state that about:flags has. 288 // Stores and encapsulates the little state that about:flags has.
282 class FlagsState { 289 class FlagsState {
283 public: 290 public:
284 FlagsState() : needs_restart_(false) {} 291 FlagsState() : needs_restart_(false) {}
285 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 292 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 } 690 }
684 691
685 const Experiment* GetExperiments(size_t* count) { 692 const Experiment* GetExperiments(size_t* count) {
686 *count = num_experiments; 693 *count = num_experiments;
687 return experiments; 694 return experiments;
688 } 695 }
689 696
690 } // namespace testing 697 } // namespace testing
691 698
692 } // namespace about_flags 699 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698