Chromium Code Reviews| Index: remoting/webapp/crd/js/options_export.js |
| diff --git a/remoting/webapp/crd/js/options_export.js b/remoting/webapp/crd/js/options_export.js |
| index dbd3a25560c96d3e8fa94fe1fceecc06561bc31e..c107e8b17515256c60269758d17933e23b868f71 100644 |
| --- a/remoting/webapp/crd/js/options_export.js |
| +++ b/remoting/webapp/crd/js/options_export.js |
| @@ -21,6 +21,11 @@ remoting.OptionsExporter = function() { |
| remoting.OptionsExporter.migrateSettings_ = function() { |
| var result = new base.Deferred(); |
| chrome.storage.local.get('remoting-host-options', function(options) { |
|
kelvinp
2017/02/13 19:58:19
put 'remoting-host-options' as a variable?
Jamie
2017/02/14 02:48:16
Done.
|
| + // If there are no host options stored, reformat the message response so |
| + // that the sender doesn't interpret it as an error. |
| + if (Object.keys(options).length == 0) { |
| + options = {'remoting-host-options': '{}'}; |
| + } |
| result.resolve(options); |
| }) |
| return result.promise(); |