diff options
author | hallielaine@chromium.org <hallielaine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-06 02:48:18 +0000 |
---|---|---|
committer | hallielaine@chromium.org <hallielaine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-06 02:48:18 +0000 |
commit | e890e09d9d641818f91237fa9ae0f528a39536d5 (patch) | |
tree | d7189b5145fa815607dec7f99e5e4a77754f6a88 | |
parent | c1f69aabb2ef238dc82f2cfb81ed87500590d1f9 (diff) | |
download | chromium_src-e890e09d9d641818f91237fa9ae0f528a39536d5.zip chromium_src-e890e09d9d641818f91237fa9ae0f528a39536d5.tar.gz chromium_src-e890e09d9d641818f91237fa9ae0f528a39536d5.tar.bz2 |
Updated create/manage profile dialogs to only send shortcut checkbox information for Windows.
BUG=146656
Review URL: https://chromiumcodereview.appspot.com/10918089
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155107 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/options/manage_profile_overlay.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/resources/options/manage_profile_overlay.js b/chrome/browser/resources/options/manage_profile_overlay.js index d104e79..281f5b2 100644 --- a/chrome/browser/resources/options/manage_profile_overlay.js +++ b/chrome/browser/resources/options/manage_profile_overlay.js @@ -77,8 +77,10 @@ cr.define('options', function() { // wish to customize their profile. var name = $('create-profile-name').value; var icon_url = createIconGrid.selectedItem; - chrome.send('createProfile', [name, icon_url, - $('create-shortcut').checked]); + var create_checkbox = false; + if ($('create-shortcut')) + create_checkbox = $('create-shortcut').checked; + chrome.send('createProfile', [name, icon_url, create_checkbox]); }; }, @@ -217,9 +219,12 @@ cr.define('options', function() { submitManageChanges_: function() { var name = $('manage-profile-name').value; var iconURL = $('manage-profile-icon-grid').selectedItem; + var manage_checkbox = false; + if ($('manage-shortcut')) + manage_checkbox = $('manage-shortcut').checked; chrome.send('setProfileNameAndIcon', [this.profileInfo_.filePath, name, iconURL, - $('manage-shortcut').checked]); + manage_checkbox]); }, /** |