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

Side by Side Diff: chrome/browser/android/signin/signin_manager_android.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 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 <vector> 5 #include <vector>
6 6
7 #include "chrome/browser/android/signin/signin_manager_android.h" 7 #include "chrome/browser/android/signin/signin_manager_android.h"
8 8
9 #include "base/android/callback_android.h" 9 #include "base/android/callback_android.h"
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 28 matching lines...) Expand all
39 #include "components/signin/core/browser/profile_oauth2_token_service.h" 39 #include "components/signin/core/browser/profile_oauth2_token_service.h"
40 #include "components/signin/core/browser/signin_manager.h" 40 #include "components/signin/core/browser/signin_manager.h"
41 #include "components/signin/core/browser/signin_metrics.h" 41 #include "components/signin/core/browser/signin_metrics.h"
42 #include "components/signin/core/common/profile_management_switches.h" 42 #include "components/signin/core/common/profile_management_switches.h"
43 #include "components/signin/core/common/signin_pref_names.h" 43 #include "components/signin/core/common/signin_pref_names.h"
44 #include "google_apis/gaia/gaia_auth_util.h" 44 #include "google_apis/gaia/gaia_auth_util.h"
45 #include "google_apis/gaia/gaia_constants.h" 45 #include "google_apis/gaia/gaia_constants.h"
46 #include "jni/SigninManager_jni.h" 46 #include "jni/SigninManager_jni.h"
47 #include "net/url_request/url_request_context_getter.h" 47 #include "net/url_request/url_request_context_getter.h"
48 48
49 using base::android::JavaParamRef;
49 using bookmarks::BookmarkModel; 50 using bookmarks::BookmarkModel;
50 51
51 namespace { 52 namespace {
52 53
53 // A BrowsingDataRemover::Observer that clears all Profile data and then 54 // A BrowsingDataRemover::Observer that clears all Profile data and then
54 // invokes a callback and deletes itself. 55 // invokes a callback and deletes itself.
55 class ProfileDataRemover : public BrowsingDataRemover::Observer { 56 class ProfileDataRemover : public BrowsingDataRemover::Observer {
56 public: 57 public:
57 ProfileDataRemover(Profile* profile, const base::Closure& callback) 58 ProfileDataRemover(Profile* profile, const base::Closure& callback)
58 : callback_(callback), 59 : callback_(callback),
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 const JavaParamRef<jstring>& j_email) { 339 const JavaParamRef<jstring>& j_email) {
339 std::string email = base::android::ConvertJavaStringToUTF8(env, j_email); 340 std::string email = base::android::ConvertJavaStringToUTF8(env, j_email);
340 std::string domain = gaia::ExtractDomainName(email); 341 std::string domain = gaia::ExtractDomainName(email);
341 return base::android::ConvertUTF8ToJavaString(env, domain); 342 return base::android::ConvertUTF8ToJavaString(env, domain);
342 } 343 }
343 344
344 // static 345 // static
345 bool SigninManagerAndroid::Register(JNIEnv* env) { 346 bool SigninManagerAndroid::Register(JNIEnv* env) {
346 return RegisterNativesImpl(env); 347 return RegisterNativesImpl(env);
347 } 348 }
OLDNEW
« no previous file with comments | « chrome/browser/android/signin/account_tracker_service_android.cc ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698