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

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

Issue 1471073007: Reorganize histograms for persistence. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shmem-alloc
Patch Set: added GN changes Created 5 years 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>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/feature_list.h" 15 #include "base/feature_list.h"
16 #include "base/memory/singleton.h" 16 #include "base/memory/singleton.h"
17 #include "base/metrics/metrics_hashes.h"
17 #include "base/metrics/sparse_histogram.h" 18 #include "base/metrics/sparse_histogram.h"
18 #include "base/stl_util.h" 19 #include "base/stl_util.h"
19 #include "base/strings/string_number_conversions.h" 20 #include "base/strings/string_number_conversions.h"
20 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
21 #include "base/strings/utf_string_conversions.h" 22 #include "base/strings/utf_string_conversions.h"
22 #include "base/values.h" 23 #include "base/values.h"
23 #include "cc/base/switches.h" 24 #include "cc/base/switches.h"
24 #include "chrome/common/channel_info.h" 25 #include "chrome/common/channel_info.h"
25 #include "chrome/common/chrome_content_client.h" 26 #include "chrome/common/chrome_content_client.h"
26 #include "chrome/common/chrome_switches.h" 27 #include "chrome/common/chrome_switches.h"
27 #include "chrome/grit/chromium_strings.h" 28 #include "chrome/grit/chromium_strings.h"
28 #include "chrome/grit/generated_resources.h" 29 #include "chrome/grit/generated_resources.h"
29 #include "chrome/grit/google_chrome_strings.h" 30 #include "chrome/grit/google_chrome_strings.h"
30 #include "components/autofill/core/common/autofill_switches.h" 31 #include "components/autofill/core/common/autofill_switches.h"
31 #include "components/browser_sync/common/browser_sync_switches.h" 32 #include "components/browser_sync/common/browser_sync_switches.h"
32 #include "components/cloud_devices/common/cloud_devices_switches.h" 33 #include "components/cloud_devices/common/cloud_devices_switches.h"
33 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h" 34 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h"
34 #include "components/dom_distiller/core/dom_distiller_switches.h" 35 #include "components/dom_distiller/core/dom_distiller_switches.h"
35 #include "components/enhanced_bookmarks/enhanced_bookmark_switches.h" 36 #include "components/enhanced_bookmarks/enhanced_bookmark_switches.h"
36 #include "components/flags_ui/feature_entry_macros.h" 37 #include "components/flags_ui/feature_entry_macros.h"
37 #include "components/flags_ui/flags_storage.h" 38 #include "components/flags_ui/flags_storage.h"
38 #include "components/flags_ui/flags_ui_switches.h" 39 #include "components/flags_ui/flags_ui_switches.h"
39 #include "components/metrics/metrics_hashes.h"
40 #include "components/nacl/common/nacl_switches.h" 40 #include "components/nacl/common/nacl_switches.h"
41 #include "components/offline_pages/offline_page_switches.h" 41 #include "components/offline_pages/offline_page_switches.h"
42 #include "components/omnibox/browser/omnibox_switches.h" 42 #include "components/omnibox/browser/omnibox_switches.h"
43 #include "components/password_manager/core/common/password_manager_switches.h" 43 #include "components/password_manager/core/common/password_manager_switches.h"
44 #include "components/proximity_auth/switches.h" 44 #include "components/proximity_auth/switches.h"
45 #include "components/search/search_switches.h" 45 #include "components/search/search_switches.h"
46 #include "components/signin/core/common/signin_switches.h" 46 #include "components/signin/core/common/signin_switches.h"
47 #include "components/sync_driver/sync_driver_switches.h" 47 #include "components/sync_driver/sync_driver_switches.h"
48 #include "components/tracing/tracing_switches.h" 48 #include "components/tracing/tracing_switches.h"
49 #include "components/version_info/version_info.h" 49 #include "components/version_info/version_info.h"
(...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2249 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2249 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2250 2250
2251 const FeatureEntry* GetFeatureEntries(size_t* count) { 2251 const FeatureEntry* GetFeatureEntries(size_t* count) {
2252 *count = arraysize(kFeatureEntries); 2252 *count = arraysize(kFeatureEntries);
2253 return kFeatureEntries; 2253 return kFeatureEntries;
2254 } 2254 }
2255 2255
2256 } // namespace testing 2256 } // namespace testing
2257 2257
2258 } // namespace about_flags 2258 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698