| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** @suppress {duplicate} */ | 5 /** @suppress {duplicate} */ |
| 6 var remoting = remoting || {}; | 6 var remoting = remoting || {}; |
| 7 | 7 |
| 8 (function(){ | 8 (function(){ |
| 9 | 9 |
| 10 /** @param {remoting.AppLauncher} appLauncher */ | 10 /** @param {remoting.AppLauncher} appLauncher */ |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 }); | 54 }); |
| 55 | 55 |
| 56 remoting.settings = new remoting.Settings(); | 56 remoting.settings = new remoting.Settings(); |
| 57 | 57 |
| 58 chrome.runtime.onSuspendCanceled.addListener(initializeIt2MeService); | 58 chrome.runtime.onSuspendCanceled.addListener(initializeIt2MeService); |
| 59 initializeIt2MeService(); | 59 initializeIt2MeService(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 function main() { | 62 function main() { |
| 63 if (base.isAppsV2()) { | 63 if (base.isAppsV2()) { |
| 64 appLauncher = new remoting.V2AppLauncher(); | 64 var appLauncher = new remoting.V2AppLauncher(); |
| 65 initializeAppV2(appLauncher); | 65 initializeAppV2(appLauncher); |
| 66 } | 66 } |
| 67 } | 67 } |
| 68 | 68 |
| 69 remoting.enableHangoutsRemoteAssistance = function() { | 69 remoting.enableHangoutsRemoteAssistance = function() { |
| 70 /** @type {remoting.AppLauncher} */ | 70 /** @type {remoting.AppLauncher} */ |
| 71 var appLauncher = base.isAppsV2() ? new remoting.V1AppLauncher(): | 71 var appLauncher = base.isAppsV2() ? new remoting.V1AppLauncher(): |
| 72 new remoting.V2AppLauncher(); | 72 new remoting.V2AppLauncher(); |
| 73 initializeBackgroundService(appLauncher); | 73 initializeBackgroundService(appLauncher); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 window.addEventListener('load', main, false); | 76 window.addEventListener('load', main, false); |
| 77 | 77 |
| 78 }()); | 78 }()); |
| OLD | NEW |