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

Unified Diff: remoting/webapp/survey.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/remoting.js ('k') | remoting/webapp/ui_mode.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/survey.js
diff --git a/remoting/webapp/survey.js b/remoting/webapp/survey.js
deleted file mode 100644
index 13954e338aa3c8463392240d48230cbbc1dffabf..0000000000000000000000000000000000000000
--- a/remoting/webapp/survey.js
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview
- * Functions and event handlers to invite the user to participate in a survey
- * to help improve the product.
- */
-
-'use strict';
-
-/** @suppress {duplicate} */
-var remoting = remoting || {};
-
-var kStorageKey = 'feedback-survey-dismissed';
-var kSurveyDivId = 'survey-opt-in';
-var kSurveyAcceptId = 'survey-accept';
-var kSurveyDeclineId = 'survey-decline';
-
-/**
- * Hide the survey request and record some basic information about the current
- * state of the world in synced storage. This may be useful in the future if we
- * want to show the request again. At the moment, the data itself is ignored;
- * only its presence or absence is important.
- *
- * @param {boolean} optIn True if the user clicked the "Take the survey" link;
- * false if they clicked the close icon.
- */
-remoting.dismissSurvey = function(optIn) {
- var value = {};
- value[kStorageKey] = {
- optIn: optIn,
- date: new Date(),
- version: chrome.runtime.getManifest().version
- };
- chrome.storage.sync.set(value);
- document.getElementById(kSurveyDivId).hidden = true;
-};
-
-/**
- * Show or hide the survey request, depending on whether or not the user has
- * already seen it.
- */
-remoting.initSurvey = function() {
- /** @param {Object} value */
- var onFeedbackSurveyInfo = function(value) {
- /** @type {*} */
- var dismissed = value[kStorageKey];
- document.getElementById(kSurveyDivId).hidden = !!dismissed;
- };
- chrome.storage.sync.get(kStorageKey, onFeedbackSurveyInfo);
- var accept = document.getElementById(kSurveyAcceptId);
- var decline = document.getElementById(kSurveyDeclineId);
- accept.addEventListener(
- 'click', remoting.dismissSurvey.bind(null, true), false);
- decline.addEventListener(
- 'click', remoting.dismissSurvey.bind(null, false), false);
-};
« no previous file with comments | « remoting/webapp/remoting.js ('k') | remoting/webapp/ui_mode.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698