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

Side by Side Diff: chrome/browser/android/chrome_application.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 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/chrome_application.h" 5 #include "chrome/browser/android/chrome_application.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/android/context_utils.h" 9 #include "base/android/context_utils.h"
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 base::android::AttachCurrentThread(), 113 base::android::AttachCurrentThread(),
114 base::android::GetApplicationContext()); 114 base::android::GetApplicationContext());
115 } 115 }
116 116
117 void ChromeApplication::OpenClearBrowsingData( 117 void ChromeApplication::OpenClearBrowsingData(
118 content::WebContents* web_contents) { 118 content::WebContents* web_contents) {
119 TabAndroid* tab = TabAndroid::FromWebContents(web_contents); 119 TabAndroid* tab = TabAndroid::FromWebContents(web_contents);
120 DCHECK(tab); 120 DCHECK(tab);
121 Java_ChromeApplication_openClearBrowsingData( 121 Java_ChromeApplication_openClearBrowsingData(
122 base::android::AttachCurrentThread(), 122 base::android::AttachCurrentThread(),
123 base::android::GetApplicationContext(), 123 base::android::GetApplicationContext(), tab->GetJavaObject());
124 tab->GetJavaObject().obj());
125 } 124 }
126 125
127 bool ChromeApplication::AreParentalControlsEnabled() { 126 bool ChromeApplication::AreParentalControlsEnabled() {
128 return Java_ChromeApplication_areParentalControlsEnabled( 127 return Java_ChromeApplication_areParentalControlsEnabled(
129 base::android::AttachCurrentThread(), 128 base::android::AttachCurrentThread(),
130 base::android::GetApplicationContext()); 129 base::android::GetApplicationContext());
131 } 130 }
132 131
133 } // namespace android 132 } // namespace android
134 } // namespace chrome 133 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698