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

Unified Diff: chrome/browser/resources/md_history/app.js

Issue 2220303002: MD History: Show 'no synced tabs' when tab sync is disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor change Created 4 years, 4 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 | chrome/browser/resources/md_history/synced_device_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index 05de2358758b1043b532324fa538c39f21026ca9..c9a41b995f83e9280ce30cd22621e6bd7d05473c 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -200,8 +200,14 @@ Polymer({
* @param {boolean} isTabSyncEnabled Is tab sync enabled for this profile?
*/
setForeignSessions: function(sessionList, isTabSyncEnabled) {
- if (!isTabSyncEnabled)
+ if (!isTabSyncEnabled) {
+ var syncedDeviceManagerElem =
+ /** @type {HistorySyncedDeviceManagerElement} */this
+ .$$('history-synced-device-manager');
+ if (syncedDeviceManagerElem)
+ syncedDeviceManagerElem.tabSyncDisabled();
return;
+ }
this.set('queryResult_.sessionList', sessionList);
},
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/synced_device_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698