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

Unified Diff: chrome/browser/chrome_content_browser_client.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.cc ('k') | ui/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 62af2d512a5e24dcbab2198a2e39430e2a3f91bb..f7812674df55339af780636d5f8b32b87a4ea5d3 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -263,6 +263,7 @@
#endif
#if defined(OS_ANDROID)
+#include "chrome/browser/android/chrome_context_util.h"
#include "chrome/browser/android/devtools_manager_delegate_android.h"
#include "chrome/browser/android/ntp/new_tab_page_url_handler.h"
#include "chrome/browser/android/service_tab_launcher.h"
@@ -270,7 +271,6 @@
#include "components/payments/payment_request.mojom.h"
#include "content/public/browser/android/java_interfaces.h"
#include "ui/base/ui_base_paths.h"
-#include "ui/gfx/android/device_display_info.h"
#else
#include "chrome/browser/devtools/chrome_devtools_manager_delegate.h"
#endif
@@ -704,8 +704,7 @@ float GetDeviceScaleAdjustment() {
static const float kMaxFSM = 1.3f;
static const int kWidthForMaxFSM = 800;
- gfx::DeviceDisplayInfo info;
- int minWidth = info.GetSmallestDIPWidth();
+ int minWidth = chrome::android::ChromeContextUtil::GetSmallestDIPWidth();
if (minWidth <= kWidthForMinFSM)
return kMinFSM;
« no previous file with comments | « chrome/browser/android/chrome_context_util.cc ('k') | ui/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698