Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 <include src="user_chooser_common.js"></include> | |
|
Nikita (slow)
2013/06/14 16:51:35
Move this include to html file.
| |
| 5 | |
| 6 cr.define('UserChooser', function() { | |
| 7 'use strict'; | |
| 8 | |
| 9 function initialize() { | |
| 10 login.AccountPickerScreen.register(); | |
| 11 cr.ui.Bubble.decorate($('bubble')); | |
| 12 login.HeaderBar.decorate($('login-header-bar')); | |
| 13 chrome.send('userChooserInitialize'); | |
| 14 } | |
| 15 | |
| 16 // Return an object with all of the exports. | |
| 17 return { | |
| 18 initialize: initialize | |
| 19 }; | |
| 20 }); | |
| 21 | |
| 22 document.addEventListener('DOMContentLoaded', UserChooser.initialize); | |
| OLD | NEW |