diff options
7 files changed, 26 insertions, 19 deletions
diff --git a/chrome/browser/resources/options/chromeos/change_picture_options.js b/chrome/browser/resources/options/chromeos/change_picture_options.js index b986743..822df96 100644 --- a/chrome/browser/resources/options/chromeos/change_picture_options.js +++ b/chrome/browser/resources/options/chromeos/change_picture_options.js @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -253,8 +253,9 @@ cr.define('options', function() { 'setProfileImage', 'setSelectedImage', ].forEach(function(name) { - ChangePictureOptions[name] = function(value1, value2) { - ChangePictureOptions.getInstance()[name + '_'](value1, value2); + ChangePictureOptions[name] = function() { + var instance = ChangePictureOptions.getInstance(); + return instance[name + '_'].apply(instance, arguments); }; }); diff --git a/chrome/browser/resources/options/manage_profile_overlay.js b/chrome/browser/resources/options/manage_profile_overlay.js index 18cccf2..32fd4f4 100644 --- a/chrome/browser/resources/options/manage_profile_overlay.js +++ b/chrome/browser/resources/options/manage_profile_overlay.js @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -253,8 +253,9 @@ cr.define('options', function() { 'showManageDialog', 'showDeleteDialog', ].forEach(function(name) { - ManageProfileOverlay[name] = function(value) { - ManageProfileOverlay.getInstance()[name + '_'](value); + ManageProfileOverlay[name] = function() { + var instance = ManageProfileOverlay.getInstance(); + return instance[name + '_'].apply(instance, arguments); }; }); diff --git a/chrome/browser/resources/options/personal_options.js b/chrome/browser/resources/options/personal_options.js index 78d40dc..1dc9f28 100644 --- a/chrome/browser/resources/options/personal_options.js +++ b/chrome/browser/resources/options/personal_options.js @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -359,8 +359,9 @@ cr.define('options', function() { 'setThemesResetButtonEnabled', 'updateAccountPicture', ].forEach(function(name) { - PersonalOptions[name] = function(value) { - return PersonalOptions.getInstance()[name + '_'](value); + PersonalOptions[name] = function() { + var instance = PersonalOptions.getInstance(); + return instance[name + '_'].apply(instance, arguments); }; }); diff --git a/chrome/browser/resources/options2/browser_options.js b/chrome/browser/resources/options2/browser_options.js index 879cf6a..1fbe3cc 100644 --- a/chrome/browser/resources/options2/browser_options.js +++ b/chrome/browser/resources/options2/browser_options.js @@ -591,8 +591,9 @@ cr.define('options', function() { 'updateSearchEngines', 'updateStartupPages', ].forEach(function(name) { - BrowserOptions[name] = function(value) { - return BrowserOptions.getInstance()[name + '_'](value); + BrowserOptions[name] = function() { + var instance = BrowserOptions.getInstance(); + return instance[name + '_'].apply(instance, arguments); }; }); diff --git a/chrome/browser/resources/options2/chromeos/change_picture_options.js b/chrome/browser/resources/options2/chromeos/change_picture_options.js index b986743..822df96 100644 --- a/chrome/browser/resources/options2/chromeos/change_picture_options.js +++ b/chrome/browser/resources/options2/chromeos/change_picture_options.js @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -253,8 +253,9 @@ cr.define('options', function() { 'setProfileImage', 'setSelectedImage', ].forEach(function(name) { - ChangePictureOptions[name] = function(value1, value2) { - ChangePictureOptions.getInstance()[name + '_'](value1, value2); + ChangePictureOptions[name] = function() { + var instance = ChangePictureOptions.getInstance(); + return instance[name + '_'].apply(instance, arguments); }; }); diff --git a/chrome/browser/resources/options2/manage_profile_overlay.js b/chrome/browser/resources/options2/manage_profile_overlay.js index 18cccf2..32fd4f4 100644 --- a/chrome/browser/resources/options2/manage_profile_overlay.js +++ b/chrome/browser/resources/options2/manage_profile_overlay.js @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -253,8 +253,9 @@ cr.define('options', function() { 'showManageDialog', 'showDeleteDialog', ].forEach(function(name) { - ManageProfileOverlay[name] = function(value) { - ManageProfileOverlay.getInstance()[name + '_'](value); + ManageProfileOverlay[name] = function() { + var instance = ManageProfileOverlay.getInstance(); + return instance[name + '_'].apply(instance, arguments); }; }); diff --git a/chrome/browser/resources/options2/startup_overlay.js b/chrome/browser/resources/options2/startup_overlay.js index 3252df4..77ed8cd 100644 --- a/chrome/browser/resources/options2/startup_overlay.js +++ b/chrome/browser/resources/options2/startup_overlay.js @@ -122,8 +122,9 @@ cr.define('options', function() { 'updateStartupPages', 'updateAutocompleteSuggestions', ].forEach(function(name) { - StartupOverlay[name] = function(value) { - StartupOverlay.getInstance()[name + '_'](value); + StartupOverlay[name] = function() { + var instance = StartupOverlay.getInstance(); + return instance[name + '_'].apply(instance, arguments); }; }); |