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

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

Issue 33863002: Added pref for snapshot document collapsed state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor Created 7 years, 2 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/ForeignSessionHelper.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java
index 33a6e5764f5f45c584d63de0ce268b437746f12d..192ef4087174c506e63d58ad24f2382c8707a2b1 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java
@@ -187,24 +187,6 @@ public class ForeignSessionHelper {
}
/**
- * Set the given session collapsed or uncollapsed in preferences.
- * @param session Session to set collapsed or uncollapsed.
- * @param isCollapsed {@code True} iff we want the session to be collapsed.
- */
- public void setForeignSessionCollapsed(ForeignSession session, boolean isCollapsed) {
- nativeSetForeignSessionCollapsed(mNativeForeignSessionHelper, session.tag, isCollapsed);
- }
-
- /**
- * Get the given session collapsed or uncollapsed state in preferences.
- * @param session Session to fetch collapsed state.
- * @return {@code True} if the session is collapsed, false if expanded.
- */
- public boolean getForeignSessionCollapsed(ForeignSession session) {
- return nativeGetForeignSessionCollapsed(mNativeForeignSessionHelper, session.tag);
- }
-
- /**
* Remove Foreign session to display. Note that it will be reappear on the next sync.
*
* This is mainly for when user wants to delete very old session that won't be used or syned in
@@ -224,10 +206,6 @@ public class ForeignSessionHelper {
List<ForeignSession> resultSessions);
private static native boolean nativeOpenForeignSessionTab(
int nativeForeignSessionHelper, String sessionTag, int tabId);
- private static native void nativeSetForeignSessionCollapsed(
- int nativeForeignSessionHelper, String sessionTag, boolean isCollapsed);
- private static native boolean nativeGetForeignSessionCollapsed(
- int nativeForeignSessionHelper, String sessionTag);
private static native void nativeDeleteForeignSession(
int nativeForeignSessionHelper, String sessionTag);
}

Powered by Google App Engine
This is Rietveld 408576698