| Index: chrome/browser/resources/set_as_metro_default.js
|
| diff --git a/chrome/browser/resources/set_as_metro_default.js b/chrome/browser/resources/set_as_metro_default.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a62af34accd1aa4c0e89f5fff6ae32e90471b0b2
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/set_as_metro_default.js
|
| @@ -0,0 +1,20 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +(function() {
|
| + // Since all we want here is forwarding of certain commands, all can be done
|
| + // in the anonymous function's scope.
|
| +
|
| + function wireUpWindow() {
|
| + $('launch-button').addEventListener('click', function() {
|
| + chrome.send('SetAsMetroDefault:LaunchSetDefaultBrowserFlow');
|
| + });
|
| +
|
| + $('return-button').addEventListener('click', function() {
|
| + chrome.send('SetAsMetroDefault:ReturnToBrowser');
|
| + });
|
| + }
|
| +
|
| + window.addEventListener('DOMContentLoaded', wireUpWindow);
|
| +})();
|
|
|