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

Side by Side Diff: chrome/browser/extensions/api/metrics_private/metrics_private_api.cc

Issue 1544283002: Clean up header files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/extensions/api/metrics_private/metrics_private_api.h" 5 #include "chrome/browser/extensions/api/metrics_private/metrics_private_api.h"
6 6
7 #include <limits.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
10 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
11 #include "base/metrics/sparse_histogram.h" 13 #include "base/metrics/sparse_histogram.h"
12 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" 14 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
13 #include "chrome/common/extensions/api/metrics_private.h" 15 #include "chrome/common/extensions/api/metrics_private.h"
14 #include "components/variations/variations_associated_data.h" 16 #include "components/variations/variations_associated_data.h"
15 #include "content/public/browser/user_metrics.h" 17 #include "content/public/browser/user_metrics.h"
16 #include "extensions/common/extension.h" 18 #include "extensions/common/extension.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 bool MetricsPrivateRecordLongTimeFunction::RunSync() { 188 bool MetricsPrivateRecordLongTimeFunction::RunSync() {
187 scoped_ptr<RecordLongTime::Params> params( 189 scoped_ptr<RecordLongTime::Params> params(
188 RecordLongTime::Params::Create(*args_)); 190 RecordLongTime::Params::Create(*args_));
189 EXTENSION_FUNCTION_VALIDATE(params.get()); 191 EXTENSION_FUNCTION_VALIDATE(params.get());
190 static const int kOneHourMs = 60 * 60 * 1000; 192 static const int kOneHourMs = 60 * 60 * 1000;
191 return RecordValue(params->metric_name, base::HISTOGRAM, 193 return RecordValue(params->metric_name, base::HISTOGRAM,
192 1, kOneHourMs, 50, params->value); 194 1, kOneHourMs, 50, params->value);
193 } 195 }
194 196
195 } // namespace extensions 197 } // namespace extensions
OLDNEW
« no previous file with comments | « base/process/process_handle_freebsd.cc ('k') | chrome/browser/extensions/api/music_manager_private/device_id_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698