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

Side by Side Diff: chrome/browser/sync/profile_sync_service_android.cc

Issue 29303007: android: Enable -Wunused-const-variable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/profile_sync_service_android.h" 5 #include "chrome/browser/sync/profile_sync_service_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/i18n/time_formatting.h" 10 #include "base/i18n/time_formatting.h"
(...skipping 28 matching lines...) Expand all
39 #include "ui/base/l10n/l10n_util.h" 39 #include "ui/base/l10n/l10n_util.h"
40 40
41 using base::android::AttachCurrentThread; 41 using base::android::AttachCurrentThread;
42 using base::android::CheckException; 42 using base::android::CheckException;
43 using base::android::ConvertJavaStringToUTF8; 43 using base::android::ConvertJavaStringToUTF8;
44 using base::android::ConvertUTF8ToJavaString; 44 using base::android::ConvertUTF8ToJavaString;
45 using base::android::ScopedJavaLocalRef; 45 using base::android::ScopedJavaLocalRef;
46 using content::BrowserThread; 46 using content::BrowserThread;
47 47
48 namespace { 48 namespace {
49 const char kSyncDisabledStatus[] = "OFFLINE_DISABLED";
50 49
51 enum { 50 enum {
52 #define DEFINE_MODEL_TYPE_SELECTION(name,value) name = value, 51 #define DEFINE_MODEL_TYPE_SELECTION(name,value) name = value,
53 #include "chrome/browser/sync/profile_sync_service_model_type_selection_android. h" 52 #include "chrome/browser/sync/profile_sync_service_model_type_selection_android. h"
54 #undef DEFINE_MODEL_TYPE_SELECTION 53 #undef DEFINE_MODEL_TYPE_SELECTION
55 }; 54 };
56 55
57 } // namespace 56 } // namespace
58 57
59 ProfileSyncServiceAndroid::ProfileSyncServiceAndroid(JNIEnv* env, jobject obj) 58 ProfileSyncServiceAndroid::ProfileSyncServiceAndroid(JNIEnv* env, jobject obj)
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 ProfileSyncServiceAndroid* profile_sync_service_android = 515 ProfileSyncServiceAndroid* profile_sync_service_android =
517 new ProfileSyncServiceAndroid(env, obj); 516 new ProfileSyncServiceAndroid(env, obj);
518 profile_sync_service_android->Init(); 517 profile_sync_service_android->Init();
519 return reinterpret_cast<jint>(profile_sync_service_android); 518 return reinterpret_cast<jint>(profile_sync_service_android);
520 } 519 }
521 520
522 // static 521 // static
523 bool ProfileSyncServiceAndroid::Register(JNIEnv* env) { 522 bool ProfileSyncServiceAndroid::Register(JNIEnv* env) {
524 return RegisterNativesImpl(env); 523 return RegisterNativesImpl(env);
525 } 524 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698