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

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

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add the browser test Created 7 years, 2 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
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 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1773 kOsWin | kOsCrOS, 1773 kOsWin | kOsCrOS,
1774 SINGLE_VALUE_TYPE(switches::kEnableStreamlinedHostedApps) 1774 SINGLE_VALUE_TYPE(switches::kEnableStreamlinedHostedApps)
1775 }, 1775 },
1776 { 1776 {
1777 "enable-service-worker", 1777 "enable-service-worker",
1778 IDS_FLAGS_ENABLE_SERVICE_WORKER_NAME, 1778 IDS_FLAGS_ENABLE_SERVICE_WORKER_NAME,
1779 IDS_FLAGS_ENABLE_SERVICE_WORKER_DESCRIPTION, 1779 IDS_FLAGS_ENABLE_SERVICE_WORKER_DESCRIPTION,
1780 kOsAll, 1780 kOsAll,
1781 SINGLE_VALUE_TYPE(switches::kEnableServiceWorker) 1781 SINGLE_VALUE_TYPE(switches::kEnableServiceWorker)
1782 }, 1782 },
1783 {
1784 "enable-translate-new-ux",
1785 IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_NAME,
1786 IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_DESCRIPTION,
1787 kOsDesktop,
1788 SINGLE_VALUE_TYPE(switches::kEnableTranslateNewUX)
1789 },
1783 }; 1790 };
1784 1791
1785 const Experiment* experiments = kExperiments; 1792 const Experiment* experiments = kExperiments;
1786 size_t num_experiments = arraysize(kExperiments); 1793 size_t num_experiments = arraysize(kExperiments);
1787 1794
1788 // Stores and encapsulates the little state that about:flags has. 1795 // Stores and encapsulates the little state that about:flags has.
1789 class FlagsState { 1796 class FlagsState {
1790 public: 1797 public:
1791 FlagsState() : needs_restart_(false) {} 1798 FlagsState() : needs_restart_(false) {}
1792 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1799 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 } 2280 }
2274 2281
2275 const Experiment* GetExperiments(size_t* count) { 2282 const Experiment* GetExperiments(size_t* count) {
2276 *count = num_experiments; 2283 *count = num_experiments;
2277 return experiments; 2284 return experiments;
2278 } 2285 }
2279 2286
2280 } // namespace testing 2287 } // namespace testing
2281 2288
2282 } // namespace about_flags 2289 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698