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

Unified Diff: remoting/webapp/remoting.js

Issue 10825187: Suppress "errors" that aren't really errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added JSCompiler hints. Created 8 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
Index: remoting/webapp/remoting.js
diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js
index bcd29a24c8ac5d51970663dd59723d631fa97150..2fb14f93a96a99f0dfd23766d5d0fb3ade153c7b 100644
--- a/remoting/webapp/remoting.js
+++ b/remoting/webapp/remoting.js
@@ -46,6 +46,13 @@ remoting.init = function() {
remoting.toolbar = new remoting.Toolbar(
document.getElementById('session-toolbar'));
remoting.clipboard = new remoting.Clipboard();
+ remoting.suspendMonitor = new remoting.SuspendMonitor(
+ function() {
+ if (remoting.clientSession) {
+ remoting.clientSession.logErrors(false);
Wez 2012/08/07 00:01:00 The assumption is that once we've suspended there
Jamie 2012/08/07 00:37:04 Yes. We don't invoke the callback unless the devic
+ }
+ }
+ );
remoting.oauth2.getEmail(remoting.onEmail, remoting.showErrorMessage);

Powered by Google App Engine
This is Rietveld 408576698