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

Side by Side Diff: chrome/browser/android/metrics/variations_session.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/android/metrics/variations_session.h" 5 #include "chrome/browser/android/metrics/variations_session.h"
6 6
7 #include "base/android/jni_string.h" 7 #include "base/android/jni_string.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "components/variations/service/variations_service.h" 9 #include "components/variations/service/variations_service.h"
10 #include "jni/VariationsSession_jni.h" 10 #include "jni/VariationsSession_jni.h"
11 11
12 using base::android::JavaParamRef;
13
12 namespace { 14 namespace {
13 15
14 // Tracks whether VariationsService::OnAppEnterForeground() has been called 16 // Tracks whether VariationsService::OnAppEnterForeground() has been called
15 // previously, in order to set the restrict mode param before the first call. 17 // previously, in order to set the restrict mode param before the first call.
16 bool g_on_app_enter_foreground_called = false; 18 bool g_on_app_enter_foreground_called = false;
17 19
18 } // namespace 20 } // namespace
19 21
20 static void StartVariationsSession( 22 static void StartVariationsSession(
21 JNIEnv* env, 23 JNIEnv* env,
(...skipping 16 matching lines...) Expand all
38 } 40 }
39 41
40 namespace chrome { 42 namespace chrome {
41 namespace android { 43 namespace android {
42 44
43 // Register native methods 45 // Register native methods
44 bool RegisterVariationsSession(JNIEnv* env) { return RegisterNativesImpl(env); } 46 bool RegisterVariationsSession(JNIEnv* env) { return RegisterNativesImpl(env); }
45 47
46 } // namespace android 48 } // namespace android
47 } // namespace chrome 49 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/metrics/uma_utils.cc ('k') | chrome/browser/android/net/external_estimate_provider_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698