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

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

Issue 11187058: Add flag to enable web content to invoke web intents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Exclude ChromeOS Created 8 years, 1 month 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/browser/ui/browser.cc » ('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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 kOsWin | kOsLinux, 999 kOsWin | kOsLinux,
1000 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillUi) 1000 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillUi)
1001 }, 1001 },
1002 { 1002 {
1003 "enable-new-autofill-heuristics", 1003 "enable-new-autofill-heuristics",
1004 IDS_FLAGS_ENABLE_NEW_AUTOFILL_HEURISTICS_NAME, 1004 IDS_FLAGS_ENABLE_NEW_AUTOFILL_HEURISTICS_NAME,
1005 IDS_FLAGS_ENABLE_NEW_AUTOFILL_HEURISTICS_DESCRIPTION, 1005 IDS_FLAGS_ENABLE_NEW_AUTOFILL_HEURISTICS_DESCRIPTION,
1006 kOsAll, 1006 kOsAll,
1007 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillHeuristics) 1007 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillHeuristics)
1008 }, 1008 },
1009 {
1010 "enable-web-intents-invocation",
1011 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_NAME,
1012 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_DESCRIPTION,
1013 kOsAll,
1014 SINGLE_VALUE_TYPE(switches::kWebIntentsInvocationEnabled)
1015 },
1009 }; 1016 };
1010 1017
1011 const Experiment* experiments = kExperiments; 1018 const Experiment* experiments = kExperiments;
1012 size_t num_experiments = arraysize(kExperiments); 1019 size_t num_experiments = arraysize(kExperiments);
1013 1020
1014 // Stores and encapsulates the little state that about:flags has. 1021 // Stores and encapsulates the little state that about:flags has.
1015 class FlagsState { 1022 class FlagsState {
1016 public: 1023 public:
1017 FlagsState() : needs_restart_(false) {} 1024 FlagsState() : needs_restart_(false) {}
1018 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1025 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 } 1442 }
1436 1443
1437 const Experiment* GetExperiments(size_t* count) { 1444 const Experiment* GetExperiments(size_t* count) {
1438 *count = num_experiments; 1445 *count = num_experiments;
1439 return experiments; 1446 return experiments;
1440 } 1447 }
1441 1448
1442 } // namespace testing 1449 } // namespace testing
1443 1450
1444 } // namespace about_flags 1451 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698