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

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: Sky's review (2) 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 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1782 kOsWin | kOsCrOS, 1782 kOsWin | kOsCrOS,
1783 SINGLE_VALUE_TYPE(switches::kEnableStreamlinedHostedApps) 1783 SINGLE_VALUE_TYPE(switches::kEnableStreamlinedHostedApps)
1784 }, 1784 },
1785 { 1785 {
1786 "enable-service-worker", 1786 "enable-service-worker",
1787 IDS_FLAGS_ENABLE_SERVICE_WORKER_NAME, 1787 IDS_FLAGS_ENABLE_SERVICE_WORKER_NAME,
1788 IDS_FLAGS_ENABLE_SERVICE_WORKER_DESCRIPTION, 1788 IDS_FLAGS_ENABLE_SERVICE_WORKER_DESCRIPTION,
1789 kOsAll, 1789 kOsAll,
1790 SINGLE_VALUE_TYPE(switches::kEnableServiceWorker) 1790 SINGLE_VALUE_TYPE(switches::kEnableServiceWorker)
1791 }, 1791 },
1792 {
1793 "enable-translate-new-ux",
1794 IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_NAME,
1795 IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_DESCRIPTION,
1796 kOsDesktop,
1797 SINGLE_VALUE_TYPE(switches::kEnableTranslateNewUX)
1798 },
1792 }; 1799 };
1793 1800
1794 const Experiment* experiments = kExperiments; 1801 const Experiment* experiments = kExperiments;
1795 size_t num_experiments = arraysize(kExperiments); 1802 size_t num_experiments = arraysize(kExperiments);
1796 1803
1797 // Stores and encapsulates the little state that about:flags has. 1804 // Stores and encapsulates the little state that about:flags has.
1798 class FlagsState { 1805 class FlagsState {
1799 public: 1806 public:
1800 FlagsState() : needs_restart_(false) {} 1807 FlagsState() : needs_restart_(false) {}
1801 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1808 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
2282 } 2289 }
2283 2290
2284 const Experiment* GetExperiments(size_t* count) { 2291 const Experiment* GetExperiments(size_t* count) {
2285 *count = num_experiments; 2292 *count = num_experiments;
2286 return experiments; 2293 return experiments;
2287 } 2294 }
2288 2295
2289 } // namespace testing 2296 } // namespace testing
2290 2297
2291 } // namespace about_flags 2298 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698