summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/hangout_services/startup.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/hangout_services/startup.js')
-rw-r--r--chromium/chrome/browser/resources/hangout_services/startup.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium/chrome/browser/resources/hangout_services/startup.js b/chromium/chrome/browser/resources/hangout_services/startup.js
new file mode 100644
index 00000000000..c81d39ce9ac
--- /dev/null
+++ b/chromium/chrome/browser/resources/hangout_services/startup.js
@@ -0,0 +1,17 @@
+// Copyright 2014 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.
+
+chrome.runtime.onStartup.addListener(
+ function() {
+ chrome.alarms.create('hangout_services_fxpre', {'delayInMinutes': 2});
+});
+
+chrome.alarms.onAlarm.addListener(function(alarm) {
+ if (!alarm || alarm.name != 'hangout_services_fxpre')
+ return;
+
+ var e = document.createElement('iframe');
+ e.src = 'https://plus.google.com/hangouts/_/fxpre';
+ document.body.appendChild(e);
+});