Chromium Code Reviews| Index: chrome/browser/resources/options/browser_options.js |
| diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js |
| index 548a6068d4007f25427caf70b04c26575dafbc3d..1d0d929668962bc2d7fb59ac8d9be3399ec9920c 100644 |
| --- a/chrome/browser/resources/options/browser_options.js |
| +++ b/chrome/browser/resources/options/browser_options.js |
| @@ -167,6 +167,13 @@ cr.define('options', function() { |
| $('instant-enabled-control').setAttribute( |
| 'metric', 'Options_InstantExtendedEnabled'); |
| } |
| + // We need to set the starting value for the instant checkbox as |
| + // it may be different from the value of the preference. |
|
Mattias Nissler (ping if slow)
2013/02/25 18:53:41
If the instant_enabled is set to the right pref na
|
| + if (loadTimeData.getValue('instant_starting_value')) { |
| + $('instant-enabled-control').setAttribute('checked', 'true'); |
| + } else { |
| + $('instant-enabled-control').setAttribute('checked', 'false'); |
| + } |
| // Users section. |
| if (loadTimeData.valueExists('profilesInfo')) { |