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

Unified Diff: remoting/webapp/crd/js/client_plugin_impl.js

Issue 687873003: Allow the background page to get an OAuth token for apps v1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move jsonParseSafe into base namespace. Created 6 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 | « remoting/webapp/base/js/base.js ('k') | remoting/webapp/crd/js/event_handlers.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/client_plugin_impl.js
diff --git a/remoting/webapp/crd/js/client_plugin_impl.js b/remoting/webapp/crd/js/client_plugin_impl.js
index 28a973d1edae21ec69f6d864e0e4497172742a36..867fc519f43603c0d6b1a92338869898ddd98f42 100644
--- a/remoting/webapp/crd/js/client_plugin_impl.js
+++ b/remoting/webapp/crd/js/client_plugin_impl.js
@@ -292,7 +292,7 @@ remoting.ClientPluginImpl.prototype.setFetchPinHandler = function(handler) {
remoting.ClientPluginImpl.prototype.handleMessage_ = function(rawMessage) {
var message =
/** @type {{method:string, data:Object.<string,*>}} */
- ((typeof(rawMessage) == 'string') ? jsonParseSafe(rawMessage)
+ ((typeof(rawMessage) == 'string') ? base.jsonParseSafe(rawMessage)
: rawMessage);
if (!message || !('method' in message) || !('data' in message)) {
console.error('Received invalid message from the plugin:', rawMessage);
« no previous file with comments | « remoting/webapp/base/js/base.js ('k') | remoting/webapp/crd/js/event_handlers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698