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

Side by Side Diff: chrome/browser/sync/sessions/sync_sessions_metrics_android.cc

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/sync/sessions/sync_sessions_metrics_android.h" 5 #include "chrome/browser/sync/sessions/sync_sessions_metrics_android.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/profiles/profile_manager.h" 11 #include "chrome/browser/profiles/profile_manager.h"
12 #include "chrome/browser/sync/profile_sync_service_factory.h" 12 #include "chrome/browser/sync/profile_sync_service_factory.h"
13 #include "components/browser_sync/browser/profile_sync_service.h" 13 #include "components/browser_sync/profile_sync_service.h"
14 #include "components/sync_sessions/sessions_sync_manager.h" 14 #include "components/sync_sessions/sessions_sync_manager.h"
15 #include "components/sync_sessions/sync_sessions_metrics.h" 15 #include "components/sync_sessions/sync_sessions_metrics.h"
16 #include "jni/SyncSessionsMetrics_jni.h" 16 #include "jni/SyncSessionsMetrics_jni.h"
17 17
18 // static 18 // static
19 bool SyncSessionsMetricsAndroid::Register(JNIEnv* env) { 19 bool SyncSessionsMetricsAndroid::Register(JNIEnv* env) {
20 return RegisterNativesImpl(env); 20 return RegisterNativesImpl(env);
21 } 21 }
22 22
23 // static 23 // static
(...skipping 18 matching lines...) Expand all
42 static_cast<sync_sessions::SessionsSyncManager*>( 42 static_cast<sync_sessions::SessionsSyncManager*>(
43 sync->GetSessionsSyncableService()); 43 sync->GetSessionsSyncableService());
44 if (sessions) { 44 if (sessions) {
45 sync_sessions::SyncSessionsMetrics::RecordYoungestForeignTabAgeOnNTP( 45 sync_sessions::SyncSessionsMetrics::RecordYoungestForeignTabAgeOnNTP(
46 sessions); 46 sessions);
47 } 47 }
48 } 48 }
49 } 49 }
50 } 50 }
51 } 51 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.cc ('k') | chrome/browser/sync/sync_error_notifier_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698