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

Side by Side Diff: chrome/browser/android/feature_utilities.cc

Issue 658903002: Starting a refactor to allow adding metrics on upload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch to using RecordGeneralMetrics Created 6 years, 2 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 2014 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 #include "chrome/browser/android/feature_utilities.h"
6
7 #include "jni/FeatureUtilities_jni.h"
8
9 namespace {
10 static bool document_mode_enabled = false;
Alexei Svitkine (slow) 2014/10/20 21:19:27 Nit: No need for "static" inside an anon namespace
11 } // namespace
12
13 namespace chrome {
14 namespace android {
15
16 RunningModeHistogram GetDocumentModeValue() {
17 return document_mode_enabled ? RUNNING_MODE_DOCUMENT_MODE :
18 RUNNING_MODE_TABBED_MODE;
19 }
20
21 } // namespace android
22 } // namespace chrome
23
24
25 static void SetDocumentModeEnabled(JNIEnv* env,
26 jclass clazz,
27 jboolean enabled) {
28 document_mode_enabled = enabled;
29 }
30
31 bool RegisterFeatureUtilities(JNIEnv* env) {
32 return RegisterNativesImpl(env);
33 }
OLDNEW
« no previous file with comments | « chrome/browser/android/feature_utilities.h ('k') | chrome/browser/metrics/android_metrics_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698