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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/profile_signin_confirmation.js
diff --git a/chrome/browser/resources/profile_signin_confirmation.js b/chrome/browser/resources/profile_signin_confirmation.js
new file mode 100644
index 0000000000000000000000000000000000000000..e1ed11cf887e47087900a493987b11150f9e33a9
--- /dev/null
+++ b/chrome/browser/resources/profile_signin_confirmation.js
@@ -0,0 +1,31 @@
+// Copyright (c) 2013 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.
+
+cr.define('profile_signin_confirmation', function() {
+ 'use strict';
+
+ function initialize() {
+ var args = JSON.parse(chrome.getVariableValue('dialogArguments'));
+ $('dialog-message').textContent = loadTimeData.getStringF(
+ 'dialogMessage', args.username);
+ $('dialog-prompt').textContent = loadTimeData.getStringF(
+ 'dialogPrompt', args.username);
+ $('create-button').addEventListener('click', function() {
+ chrome.send('createNewProfile');
+ });
+ $('continue-button').addEventListener('click', function() {
+ chrome.send('continue');
+ });
+ $('cancel-button').addEventListener('click', function() {
+ chrome.send('cancel');
+ });
+ }
+
+ return {
+ initialize: initialize
+ };
+});
+
+document.addEventListener('DOMContentLoaded',
+ profile_signin_confirmation.initialize);
« 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