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

Unified Diff: chrome/browser/android/chrome_context_util.cc

Issue 2623653002: android: Remove DeviceDisplayInfo (Closed)
Patch Set: rebase Created 3 years, 11 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 | « chrome/browser/android/chrome_context_util.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/chrome_context_util.cc
diff --git a/chrome/browser/android/chrome_context_util.cc b/chrome/browser/android/chrome_context_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a55294d317e125af162c0500a8f9cfccb233cf72
--- /dev/null
+++ b/chrome/browser/android/chrome_context_util.cc
@@ -0,0 +1,22 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/android/chrome_context_util.h"
+
+#include "base/android/jni_android.h"
+#include "jni/ChromeContextUtil_jni.h"
+
+namespace chrome {
+namespace android {
+
+ChromeContextUtil::ChromeContextUtil() {}
+
+// static
+int ChromeContextUtil::GetSmallestDIPWidth() {
+ return Java_ChromeContextUtil_getSmallestDIPWidth(
+ base::android::AttachCurrentThread());
+}
+
+} // namespace android
+} // namespace chrome
« no previous file with comments | « chrome/browser/android/chrome_context_util.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698