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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 remoting.it2meService = null; | 53 remoting.it2meService = null; |
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 /** @type {remoting.AppLauncher} */ | |
64 var appLauncher = new remoting.V1AppLauncher(); | |
65 if (base.isAppsV2()) { | 63 if (base.isAppsV2()) { |
66 appLauncher = new remoting.V2AppLauncher(); | 64 appLauncher = new remoting.V2AppLauncher(); |
67 initializeAppV2(appLauncher); | 65 initializeAppV2(appLauncher); |
68 } | 66 } |
| 67 } |
| 68 |
| 69 remoting.enableHangoutsRemoteAssistance = function() { |
| 70 /** @type {remoting.AppLauncher} */ |
| 71 var appLauncher = base.isAppsV2() ? new remoting.V1AppLauncher(): |
| 72 new remoting.V2AppLauncher(); |
69 initializeBackgroundService(appLauncher); | 73 initializeBackgroundService(appLauncher); |
70 } | 74 }; |
71 | 75 |
72 window.addEventListener('load', main, false); | 76 window.addEventListener('load', main, false); |
73 | 77 |
74 }()); | 78 }()); |
OLD | NEW |