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

Side by Side Diff: chrome/browser/android/data_usage/data_use_tab_ui_manager_android.cc

Issue 1418473005: Add a dialog UI for Data Use accounting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@freighterSnackbar
Patch Set: adding OWNERS back Created 5 years, 1 month 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
« no previous file with comments | « chrome/android/java/strings/android_chrome_strings.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/data_usage/data_use_tab_ui_manager_android.h" 5 #include "chrome/browser/android/data_usage/data_use_tab_ui_manager_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "chrome/browser/profiles/profile_android.h" 8 #include "chrome/browser/profiles/profile_android.h"
9 #include "jni/DataUseTabUIManager_jni.h" 9 #include "jni/DataUseTabUIManager_jni.h"
10 10
11 // static 11 // static
12 jboolean HasDataUseTrackingStarted(JNIEnv* env, 12 jboolean CheckDataUseTrackingStarted(JNIEnv* env,
13 const JavaParamRef<jclass>& clazz, 13 const JavaParamRef<jclass>& clazz,
14 jint tab_id, 14 jint tab_id,
15 const JavaParamRef<jobject>& jprofile) { 15 const JavaParamRef<jobject>& jprofile) {
16 // TODO(megjablon): Get the DataUseTabUIManager which is a keyed service and 16 // TODO(megjablon): Get the DataUseTabUIManager which is a keyed service and
17 // ask it if data use tracking has started. 17 // ask it if data use tracking has started.
18 // Profile* profile = ProfileAndroid::FromProfileAndroid(jprofile); 18 // Profile* profile = ProfileAndroid::FromProfileAndroid(jprofile);
19 return false; 19 return false;
20 } 20 }
21 21
22 // static 22 // static
23 jboolean HasDataUseTrackingEnded(JNIEnv* env, 23 jboolean CheckDataUseTrackingEnded(JNIEnv* env,
24 const JavaParamRef<jclass>& clazz, 24 const JavaParamRef<jclass>& clazz,
25 jint tab_id, 25 jint tab_id,
26 const JavaParamRef<jobject>& jprofile) { 26 const JavaParamRef<jobject>& jprofile) {
27 // TODO(megjablon): Get the DataUseTabUIManager which is a keyed service and 27 // TODO(megjablon): Get the DataUseTabUIManager which is a keyed service and
28 // ask it if data use tracking has ended. 28 // ask it if data use tracking has ended.
29 // Profile* profile = ProfileAndroid::FromProfileAndroid(jprofile); 29 // Profile* profile = ProfileAndroid::FromProfileAndroid(jprofile);
30 return false; 30 return false;
31 } 31 }
32 32
33 bool RegisterDataUseTabUIManager(JNIEnv* env) { 33 bool RegisterDataUseTabUIManager(JNIEnv* env) {
34 return RegisterNativesImpl(env); 34 return RegisterNativesImpl(env);
35 } 35 }
OLDNEW
« no previous file with comments | « chrome/android/java/strings/android_chrome_strings.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698