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

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

Issue 2859263002: ThumbnailTabHelper: Capture thumbnail when page load finishes (Closed)
Patch Set: flag Created 3 years, 7 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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after
2785 {"enable-heap-profiling", flag_descriptions::kEnableHeapProfilingName, 2785 {"enable-heap-profiling", flag_descriptions::kEnableHeapProfilingName,
2786 flag_descriptions::kEnableHeapProfilingDescription, kOsAll, 2786 flag_descriptions::kEnableHeapProfilingDescription, kOsAll,
2787 MULTI_VALUE_TYPE(kEnableHeapProfilingChoices)}, 2787 MULTI_VALUE_TYPE(kEnableHeapProfilingChoices)},
2788 2788
2789 #if defined(TOOLKIT_VIEWS) || (defined(OS_MACOSX) && !defined(OS_IOS)) 2789 #if defined(TOOLKIT_VIEWS) || (defined(OS_MACOSX) && !defined(OS_IOS))
2790 {"show-cert-link", flag_descriptions::kShowCertLinkOnPageInfoName, 2790 {"show-cert-link", flag_descriptions::kShowCertLinkOnPageInfoName,
2791 flag_descriptions::kShowCertLinkOnPageInfoDescription, kOsDesktop, 2791 flag_descriptions::kShowCertLinkOnPageInfoDescription, kOsDesktop,
2792 SINGLE_VALUE_TYPE(switches::kShowCertLink)}, 2792 SINGLE_VALUE_TYPE(switches::kShowCertLink)},
2793 #endif 2793 #endif
2794 2794
2795 {"capture-thumbnail-on-load-finished",
2796 flag_descriptions::kCaptureThumbnailOnLoadFinishedName,
2797 flag_descriptions::kCaptureThumbnailOnLoadFinishedDescription, kOsDesktop,
2798 FEATURE_VALUE_TYPE(features::kCaptureThumbnailOnLoadFinished)},
2799
2795 // NOTE: Adding new command-line switches requires adding corresponding 2800 // NOTE: Adding new command-line switches requires adding corresponding
2796 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2801 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2797 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2802 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2798 }; 2803 };
2799 2804
2800 class FlagsStateSingleton { 2805 class FlagsStateSingleton {
2801 public: 2806 public:
2802 FlagsStateSingleton() 2807 FlagsStateSingleton()
2803 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2808 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2804 ~FlagsStateSingleton() {} 2809 ~FlagsStateSingleton() {}
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
3010 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 3015 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
3011 3016
3012 const FeatureEntry* GetFeatureEntries(size_t* count) { 3017 const FeatureEntry* GetFeatureEntries(size_t* count) {
3013 *count = arraysize(kFeatureEntries); 3018 *count = arraysize(kFeatureEntries);
3014 return kFeatureEntries; 3019 return kFeatureEntries;
3015 } 3020 }
3016 3021
3017 } // namespace testing 3022 } // namespace testing
3018 3023
3019 } // namespace about_flags 3024 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | chrome/browser/thumbnails/thumbnail_tab_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698