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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/feature_engagement_tracker/FeatureEngagementTrackerFactory.java

Issue 2782113002: Add component for feature engagement tracking. (Closed)
Patch Set: Fix typo in //chrome/android/java/DEPS Created 3 years, 8 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 package org.chromium.chrome.browser.feature_engagement_tracker;
6
7 import org.chromium.chrome.browser.profiles.Profile;
8 import org.chromium.components.feature_engagement_tracker.FeatureEngagementTrack er;
9
10 /**
11 * This factory creates FeatureEngagementTracker for the given {@link Profile}.
12 */
13 public final class FeatureEngagementTrackerFactory {
14 // Don't instantiate me.
15 private FeatureEngagementTrackerFactory() {}
16
17 /**
18 * A factory method to build a {@link FeatureEngagementTracker} object. Each Profile only ever
19 * has a single {@link FeatureEngagementTracker}, so the first this method i s called (or from
20 * native), the {@link FeatureEngagementTracker} will be created, and later calls will return
21 * the already created instance.
22 * @return The {@link FeatureEngagementTracker} for the given profile object .
23 */
24 public static FeatureEngagementTracker getFeatureEngagementTrackerForProfile (Profile profile) {
25 return nativeGetFeatureEngagementTrackerForProfile(profile);
26 }
27
28 private static native FeatureEngagementTracker nativeGetFeatureEngagementTra ckerForProfile(
29 Profile profile);
30 }
OLDNEW
« no previous file with comments | « chrome/android/java/DEPS ('k') | chrome/android/java/src/org/chromium/chrome/browser/feature_engagement_tracker/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698