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

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 15774008: Pass errors generated during limited-user registration up to the UI for display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: One more switch statement Created 7 years, 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 var RepeatingButton = cr.ui.RepeatingButton; 8 var RepeatingButton = cr.ui.RepeatingButton;
9 9
10 // 10 //
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 /** 1063 /**
1064 * Reports a local error (e.g., disk full) to the "create" overlay during 1064 * Reports a local error (e.g., disk full) to the "create" overlay during
1065 * profile creation. 1065 * profile creation.
1066 * @private 1066 * @private
1067 */ 1067 */
1068 showCreateProfileLocalError_: function() { 1068 showCreateProfileLocalError_: function() {
1069 CreateProfileOverlay.onLocalError(); 1069 CreateProfileOverlay.onLocalError();
1070 }, 1070 },
1071 1071
1072 /** 1072 /**
1073 * Reports a remote error (e.g., a network error during limited-user
1074 * registration) to the "create" overlay during profile creation.
1075 * @private
1076 */
1077 showCreateProfileRemoteError_: function() {
1078 CreateProfileOverlay.onRemoteError();
1079 },
1080
1081 /**
1073 * Reports successful profile creation to the "create" overlay. 1082 * Reports successful profile creation to the "create" overlay.
1074 * @param {Object} profileInfo An object of the form: 1083 * @param {Object} profileInfo An object of the form:
1075 * profileInfo = { 1084 * profileInfo = {
1076 * name: "Profile Name", 1085 * name: "Profile Name",
1077 * filePath: "/path/to/profile/data/on/disk" 1086 * filePath: "/path/to/profile/data/on/disk"
1078 * isManaged: (true|false), 1087 * isManaged: (true|false),
1079 * }; 1088 * };
1080 * @private 1089 * @private
1081 */ 1090 */
1082 showCreateProfileSuccess_: function(profileInfo) { 1091 showCreateProfileSuccess_: function(profileInfo) {
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 'setPasswordGenerationSettingVisibility', 1466 'setPasswordGenerationSettingVisibility',
1458 'setProfilesInfo', 1467 'setProfilesInfo',
1459 'setSpokenFeedbackCheckboxState', 1468 'setSpokenFeedbackCheckboxState',
1460 'setThemesResetButtonEnabled', 1469 'setThemesResetButtonEnabled',
1461 'setVirtualKeyboardCheckboxState', 1470 'setVirtualKeyboardCheckboxState',
1462 'setupCloudPrintConnectorSection', 1471 'setupCloudPrintConnectorSection',
1463 'setupPageZoomSelector', 1472 'setupPageZoomSelector',
1464 'setupProxySettingsSection', 1473 'setupProxySettingsSection',
1465 'showBluetoothSettings', 1474 'showBluetoothSettings',
1466 'showCreateProfileLocalError', 1475 'showCreateProfileLocalError',
1476 'showCreateProfileRemoteError',
1467 'showCreateProfileSuccess', 1477 'showCreateProfileSuccess',
1468 'showMouseControls', 1478 'showMouseControls',
1469 'showTouchpadControls', 1479 'showTouchpadControls',
1470 'updateAccountPicture', 1480 'updateAccountPicture',
1471 'updateAutoLaunchState', 1481 'updateAutoLaunchState',
1472 'updateDefaultBrowserState', 1482 'updateDefaultBrowserState',
1473 'updateInstantCheckboxState', 1483 'updateInstantCheckboxState',
1474 'updateSearchEngines', 1484 'updateSearchEngines',
1475 'updateStartupPages', 1485 'updateStartupPages',
1476 'updateSyncState', 1486 'updateSyncState',
(...skipping 13 matching lines...) Expand all
1490 BrowserOptions.getLoggedInUsername = function() { 1500 BrowserOptions.getLoggedInUsername = function() {
1491 return BrowserOptions.getInstance().username_; 1501 return BrowserOptions.getInstance().username_;
1492 }; 1502 };
1493 } 1503 }
1494 1504
1495 // Export 1505 // Export
1496 return { 1506 return {
1497 BrowserOptions: BrowserOptions 1507 BrowserOptions: BrowserOptions
1498 }; 1508 };
1499 }); 1509 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698