Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Side by Side Diff: chrome/browser/resources/profile_signin_confirmation.js

Issue 12221111: Add a modal confirmation dialog to the enterprise profile sign-in flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright header Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
5 cr.define('profile_signin_confirmation', function() {
6 'use strict';
7
8 function initialize() {
9 var args = JSON.parse(chrome.getVariableValue('dialogArguments'));
10 $('dialog-message').textContent = loadTimeData.getStringF(
11 'dialogMessage', args.username);
12 $('dialog-prompt').textContent = loadTimeData.getStringF(
13 'dialogPrompt', args.username);
14 $('create-button').addEventListener('click', function() {
15 chrome.send('createNewProfile');
16 });
17 $('continue-button').addEventListener('click', function() {
18 chrome.send('continue');
19 });
20 $('cancel-button').addEventListener('click', function() {
21 chrome.send('cancel');
22 });
23 }
24
25 return {
26 initialize: initialize
27 };
28 });
29
30 document.addEventListener('DOMContentLoaded',
31 profile_signin_confirmation.initialize);
OLDNEW
« no previous file with comments | « chrome/browser/resources/profile_signin_confirmation.html ('k') | chrome/browser/signin/signin_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698