| Index: chrome/browser/resources/set_as_default_browser.js
|
| diff --git a/chrome/browser/resources/set_as_default_browser.js b/chrome/browser/resources/set_as_default_browser.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..be313394f8acc760c8e81932b6ed9ad0b00770cb
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/set_as_default_browser.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('SetAsDefaultBrowser:LaunchSetDefaultBrowserFlow');
|
| + });
|
| +
|
| + $('return-button').addEventListener('click', function() {
|
| + chrome.send('SetAsDefaultBrowser:ReturnToBrowser');
|
| + });
|
| + }
|
| +
|
| + window.addEventListener('DOMContentLoaded', wireUpWindow);
|
| +})();
|
|
|