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

Unified Diff: ui/base/device_form_factor_android.cc

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/clipboard/clipboard_android.cc ('k') | ui/base/touch/touch_device_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/device_form_factor_android.cc
diff --git a/ui/base/device_form_factor_android.cc b/ui/base/device_form_factor_android.cc
index 3ecd0d9168e7bd37c7008ee9980f57dcb419b141..0ac72218942c3d897d184133c5fab3d09de1a7d1 100644
--- a/ui/base/device_form_factor_android.cc
+++ b/ui/base/device_form_factor_android.cc
@@ -4,16 +4,14 @@
#include "ui/base/device_form_factor.h"
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "jni/DeviceFormFactor_jni.h"
namespace ui {
DeviceFormFactor GetDeviceFormFactor() {
- bool is_tablet = Java_DeviceFormFactor_isTablet(
- base::android::AttachCurrentThread(),
- base::android::GetApplicationContext());
+ bool is_tablet =
+ Java_DeviceFormFactor_isTablet(base::android::AttachCurrentThread());
return is_tablet ? DEVICE_FORM_FACTOR_TABLET : DEVICE_FORM_FACTOR_PHONE;
}
« no previous file with comments | « ui/base/clipboard/clipboard_android.cc ('k') | ui/base/touch/touch_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698