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

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

Issue 10210003: Sync UI: Add a flag to enable the new signin flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 }, 636 },
637 #if defined(OS_CHROMEOS) 637 #if defined(OS_CHROMEOS)
638 { 638 {
639 "no-discard-tabs", 639 "no-discard-tabs",
640 IDS_FLAGS_NO_DISCARD_TABS_NAME, 640 IDS_FLAGS_NO_DISCARD_TABS_NAME,
641 IDS_FLAGS_NO_DISCARD_TABS_DESCRIPTION, 641 IDS_FLAGS_NO_DISCARD_TABS_DESCRIPTION,
642 kOsCrOS, 642 kOsCrOS,
643 SINGLE_VALUE_TYPE(switches::kNoDiscardTabs) 643 SINGLE_VALUE_TYPE(switches::kNoDiscardTabs)
644 }, 644 },
645 #endif 645 #endif
646 {
647 "enable-sync-signing",
648 IDS_ENABLE_SYNC_SIGNIN_NAME,
649 IDS_ENABLE_SYNC_SIGNIN_DESCRIPTION,
650 kOsAll,
651 SINGLE_VALUE_TYPE(switches::kEnableSyncSignin)
652 },
646 }; 653 };
647 654
648 const Experiment* experiments = kExperiments; 655 const Experiment* experiments = kExperiments;
649 size_t num_experiments = arraysize(kExperiments); 656 size_t num_experiments = arraysize(kExperiments);
650 657
651 // Stores and encapsulates the little state that about:flags has. 658 // Stores and encapsulates the little state that about:flags has.
652 class FlagsState { 659 class FlagsState {
653 public: 660 public:
654 FlagsState() : needs_restart_(false) {} 661 FlagsState() : needs_restart_(false) {}
655 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 662 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 } 1078 }
1072 1079
1073 const Experiment* GetExperiments(size_t* count) { 1080 const Experiment* GetExperiments(size_t* count) {
1074 *count = num_experiments; 1081 *count = num_experiments;
1075 return experiments; 1082 return experiments;
1076 } 1083 }
1077 1084
1078 } // namespace testing 1085 } // namespace testing
1079 1086
1080 } // namespace about_flags 1087 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698