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

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

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. 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 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/android/password_ui_view_android.h" 5 #include "chrome/browser/android/password_ui_view_android.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 ScopedJavaLocalRef<jstring> GetAccountDashboardURL( 145 ScopedJavaLocalRef<jstring> GetAccountDashboardURL(
146 JNIEnv* env, 146 JNIEnv* env,
147 const JavaParamRef<jclass>&) { 147 const JavaParamRef<jclass>&) {
148 return ConvertUTF8ToJavaString( 148 return ConvertUTF8ToJavaString(
149 env, password_manager::kPasswordManagerAccountDashboardURL); 149 env, password_manager::kPasswordManagerAccountDashboardURL);
150 } 150 }
151 151
152 static jboolean ShouldUseSmartLockBranding(JNIEnv* env, 152 static jboolean ShouldUseSmartLockBranding(JNIEnv* env,
153 const JavaParamRef<jclass>&) { 153 const JavaParamRef<jclass>&) {
154 const ProfileSyncService* sync_service = 154 const browser_sync::ProfileSyncService* sync_service =
155 ProfileSyncServiceFactory::GetForProfile( 155 ProfileSyncServiceFactory::GetForProfile(
156 ProfileManager::GetLastUsedProfile()); 156 ProfileManager::GetLastUsedProfile());
157 return password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service); 157 return password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service);
158 } 158 }
159 159
160 // static 160 // static
161 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { 161 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
162 PasswordUIViewAndroid* controller = new PasswordUIViewAndroid(env, obj); 162 PasswordUIViewAndroid* controller = new PasswordUIViewAndroid(env, obj);
163 return reinterpret_cast<intptr_t>(controller); 163 return reinterpret_cast<intptr_t>(controller);
164 } 164 }
165 165
166 bool PasswordUIViewAndroid::RegisterPasswordUIViewAndroid(JNIEnv* env) { 166 bool PasswordUIViewAndroid::RegisterPasswordUIViewAndroid(JNIEnv* env) {
167 return RegisterNativesImpl(env); 167 return RegisterNativesImpl(env);
168 } 168 }
OLDNEW
« no previous file with comments | « chrome/browser/android/foreign_session_helper.cc ('k') | chrome/browser/app_controller_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698