| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dbd3a25560c96d3e8fa94fe1fceecc06561bc31e
|
| --- /dev/null
|
| +++ b/remoting/webapp/crd/js/options_export.js
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2017 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.
|
| +
|
| +/** @suppress {duplicate} */
|
| +var remoting = remoting || {};
|
| +
|
| +(function(){
|
| +
|
| +'use strict';
|
| +
|
| +/**
|
| + * @constructor
|
| + */
|
| +remoting.OptionsExporter = function() {
|
| + base.Ipc.getInstance().register('getSettings',
|
| + remoting.OptionsExporter.migrateSettings_,
|
| + true);
|
| +};
|
| +
|
| +remoting.OptionsExporter.migrateSettings_ = function() {
|
| + var result = new base.Deferred();
|
| + chrome.storage.local.get('remoting-host-options', function(options) {
|
| + result.resolve(options);
|
| + })
|
| + return result.promise();
|
| +};
|
| +
|
| +
|
| +}());
|
|
|