From e890e09d9d641818f91237fa9ae0f528a39536d5 Mon Sep 17 00:00:00 2001
From: "hallielaine@chromium.org"
 <hallielaine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Thu, 6 Sep 2012 02:48:18 +0000
Subject: 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
---
 chrome/browser/resources/options/manage_profile_overlay.js | 11 ++++++++---
 1 file 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]);
     },
 
     /**
-- 
cgit v1.1