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

Side by Side Diff: components/autofill/core/browser/autofill_ukm.h

Issue 2740633002: [Autofill] Add upstreaming UKM (Closed)
Patch Set: Re-do Created 3 years, 9 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_UKM_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_UKM_H_
7
8 #include "base/macros.h"
9 #include "components/autofill/core/browser/autofill_metrics.h"
10
11 class GURL;
12
13 namespace ukm {
14 class UkmService;
15 } // namespace ukm
16
17 namespace autofill {
18
19 // A class to log Autofill related Url Keyed Metrics.
20 class AutofillUkm {
Mathieu 2017/03/09 18:40:49 I don't think we need the class, right? LogUkm cou
sebsg 2017/03/09 19:57:04 Done.
21 public:
22 // Logs the the |ukm| with the specified |url| and the specified |metrics|.
23 // Returns whether the ukm was sucessfully logged.
24 static bool LogUkm(ukm::UkmService* ukm_service,
25 const GURL& url,
26 const std::string& ukm,
27 const std::map<std::string, int>& metrics);
28
29 private:
30 AutofillUkm(){};
31 };
32
33 } // namespace autofill
34
35 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_UKM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698