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

Unified Diff: remoting/webapp/ui_mode.js

Issue 14803010: Add link to Hangouts Remote Desktop in the It2Me section of the remoting app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « remoting/webapp/survey.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/ui_mode.js
diff --git a/remoting/webapp/ui_mode.js b/remoting/webapp/ui_mode.js
index e3b92a951713a74a28d9eda2496a110a5097b6e6..c8d3c5cd40effbc7bed8b0a951e5c7d081d3ed19 100644
--- a/remoting/webapp/ui_mode.js
+++ b/remoting/webapp/ui_mode.js
@@ -50,6 +50,11 @@ remoting.AppMode = {
IN_SESSION: 'in-session'
};
+/** @const */
+remoting.kIT2MeVisitedStorageKey = 'it2me-visited';
+/** @const */
+remoting.kMe2MeVisitedStorageKey = 'me2me-visited';
+
/**
* @param {Element} element The element to check.
* @param {string} attrName The attribute on the element to check.
@@ -152,32 +157,32 @@ remoting.showOrHideCallback = function(mode, items) {
};
remoting.showOrHideIT2MeUi = function() {
- remoting.storage.local.get('it2me-visited',
+ remoting.storage.local.get(remoting.kIT2MeVisitedStorageKey,
remoting.showOrHideCallback.bind(null, 'it2me'));
};
remoting.showOrHideMe2MeUi = function() {
- remoting.storage.local.get('me2me-visited',
+ remoting.storage.local.get(remoting.kMe2MeVisitedStorageKey,
remoting.showOrHideCallback.bind(null, 'me2me'));
};
remoting.showIT2MeUiAndSave = function() {
var items = {};
- items['it2me-visited'] = true;
+ items[remoting.kIT2MeVisitedStorageKey] = true;
remoting.storage.local.set(items);
remoting.showOrHideCallback('it2me', [true]);
};
remoting.showMe2MeUiAndSave = function() {
var items = {};
- items['me2me-visited'] = true;
+ items[remoting.kMe2MeVisitedStorageKey] = true;
remoting.storage.local.set(items);
remoting.showOrHideCallback('me2me', [true]);
};
remoting.resetInfographics = function() {
- remoting.storage.local.remove('it2me-visited');
- remoting.storage.local.remove('me2me-visited');
+ remoting.storage.local.remove(remoting.kIT2MeVisitedStorageKey);
+ remoting.storage.local.remove(remoting.kMe2MeVisitedStorageKey);
remoting.showOrHideCallback('it2me', [false]);
remoting.showOrHideCallback('me2me', [false]);
}
« no previous file with comments | « remoting/webapp/survey.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698