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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkUtils.java

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
Index: chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkUtils.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkUtils.java
index 406da19059535cfcdfc6600a431703f7ad817711..ef72ff644e473cf39c0985f181120e4e39fb39f1 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkUtils.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkUtils.java
@@ -161,7 +161,7 @@ public class BookmarkUtils {
if (activity.getBottomSheet() != null) {
activity.getBottomSheetContentController().showContentAndOpenSheet(
R.id.action_bookmarks);
- } else if (DeviceFormFactor.isTablet(activity)) {
+ } else if (DeviceFormFactor.isTablet()) {
openUrl(activity, url, activity.getComponentName());
} else {
Intent intent = new Intent(activity, BookmarkActivity.class);
@@ -247,7 +247,7 @@ public class BookmarkUtils {
RecordHistogram.recordEnumeratedHistogram(
"Stars.LaunchLocation", launchLocation, BookmarkLaunchLocation.COUNT);
- if (DeviceFormFactor.isTablet(activity)) {
+ if (DeviceFormFactor.isTablet()) {
// For tablets, the bookmark manager is open in a tab in the ChromeActivity. Use
// the ComponentName of the ChromeActivity passed into this method.
openUrl(activity, url, activity.getComponentName());

Powered by Google App Engine
This is Rietveld 408576698