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

Side by Side Diff: chrome/browser/android/signin/signin_promo_util_android.cc

Issue 2237943002: Remove now-unnecessary .obj() in Java method calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch-context
Patch Set: Rebase *again* :( 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/signin/signin_promo_util_android.h" 5 #include "chrome/browser/android/signin/signin_promo_util_android.h"
6 6
7 #include "base/android/context_utils.h" 7 #include "base/android/context_utils.h"
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "jni/SigninPromoUtil_jni.h" 9 #include "jni/SigninPromoUtil_jni.h"
10 #include "ui/android/window_android.h" 10 #include "ui/android/window_android.h"
11 11
12 namespace chrome { 12 namespace chrome {
13 namespace android { 13 namespace android {
14 14
15 // static 15 // static
16 void SigninPromoUtilAndroid::StartAccountSigninActivityForPromo( 16 void SigninPromoUtilAndroid::StartAccountSigninActivityForPromo(
17 content::ContentViewCore* content_view_core, 17 content::ContentViewCore* content_view_core,
18 signin_metrics::AccessPoint access_point) { 18 signin_metrics::AccessPoint access_point) {
19 if (content_view_core && content_view_core->GetWindowAndroid()) { 19 if (content_view_core && content_view_core->GetWindowAndroid()) {
20 Java_SigninPromoUtil_openAccountSigninActivityForPromo( 20 Java_SigninPromoUtil_openAccountSigninActivityForPromo(
21 base::android::AttachCurrentThread(), 21 base::android::AttachCurrentThread(),
22 content_view_core->GetWindowAndroid()->GetJavaObject().obj(), 22 content_view_core->GetWindowAndroid()->GetJavaObject(),
23 jint(access_point)); 23 jint(access_point));
24 } 24 }
25 } 25 }
26 26
27 } // namespace android 27 } // namespace android
28 } // namespace chrome 28 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/signin/signin_manager_android.cc ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698