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

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

Issue 2389383007: [sync] Open tabs from other devices are shown after disabling "Open Tabs" (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/ForeignSessionHelper.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/ForeignSessionHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/ForeignSessionHelper.java
index 9e687fbd665d9dc8c211b571d1df8dcdae20a374..6bb413a5aeed4e4800b4d98ab02ea746b9c4d44a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/ForeignSessionHelper.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/ForeignSessionHelper.java
@@ -160,6 +160,9 @@ class ForeignSessionHelper {
* reason.
*/
List<ForeignSession> getForeignSessions() {
+ if (!isTabSyncEnabled()) {
Ted C 2016/10/07 17:39:47 in java if the statement and condition fit one lin
Patrick Noland 2016/10/07 18:41:15 This is the result of "git cl format" and it's con
+ return null;
+ }
List<ForeignSession> result = new ArrayList<ForeignSession>();
boolean received = nativeGetForeignSessions(mNativeForeignSessionHelper, result);
if (!received) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698