Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #include "chrome/browser/ui/webui/options2/browser_options_handler.h" | 5 #include "chrome/browser/ui/webui/options2/browser_options_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 355 values->SetString( | 355 values->SetString( |
| 356 "defaultBrowserUseAsDefault", | 356 "defaultBrowserUseAsDefault", |
| 357 l10n_util::GetStringFUTF16(IDS_OPTIONS_DEFAULTBROWSER_USEASDEFAULT, | 357 l10n_util::GetStringFUTF16(IDS_OPTIONS_DEFAULTBROWSER_USEASDEFAULT, |
| 358 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); | 358 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
| 359 values->SetString( | 359 values->SetString( |
| 360 "autoLaunchText", | 360 "autoLaunchText", |
| 361 l10n_util::GetStringFUTF16(IDS_AUTOLAUNCH_TEXT, | 361 l10n_util::GetStringFUTF16(IDS_AUTOLAUNCH_TEXT, |
| 362 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); | 362 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
| 363 | 363 |
| 364 #if defined(OS_CHROMEOS) | 364 #if defined(OS_CHROMEOS) |
| 365 if (chromeos::UserManager::Get()->IsUserLoggedIn()) { | |
| 366 values->SetString("username", | 365 values->SetString("username", |
| 367 chromeos::UserManager::Get()->GetLoggedInUser().email()); | 366 chromeos::UserManager::Get()->IsUserLoggedIn() ? |
| 368 } | 367 chromeos::UserManager::Get()->GetLoggedInUser().email() : ""); |
|
sky
2012/08/08 21:07:24
nit: "" -> std::string().
| |
| 369 #endif | 368 #endif |
| 370 | 369 |
| 371 // Pass along sync status early so it will be available during page init. | 370 // Pass along sync status early so it will be available during page init. |
| 372 values->Set("syncData", GetSyncStateDictionary().release()); | 371 values->Set("syncData", GetSyncStateDictionary().release()); |
| 373 | 372 |
| 374 values->SetString("privacyLearnMoreURL", chrome::kPrivacyLearnMoreURL); | 373 values->SetString("privacyLearnMoreURL", chrome::kPrivacyLearnMoreURL); |
| 375 values->SetString("sessionRestoreLearnMoreURL", | 374 values->SetString("sessionRestoreLearnMoreURL", |
| 376 chrome::kSessionRestoreLearnMoreURL); | 375 chrome::kSessionRestoreLearnMoreURL); |
| 377 | 376 |
| 378 values->SetString( | 377 values->SetString( |
| (...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1450 } | 1449 } |
| 1451 | 1450 |
| 1452 void BrowserOptionsHandler::SetupSSLConfigSettings() { | 1451 void BrowserOptionsHandler::SetupSSLConfigSettings() { |
| 1453 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); | 1452 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); |
| 1454 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); | 1453 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); |
| 1455 web_ui()->CallJavascriptFunction( | 1454 web_ui()->CallJavascriptFunction( |
| 1456 "BrowserOptions.setCheckRevocationCheckboxState", checked, disabled); | 1455 "BrowserOptions.setCheckRevocationCheckboxState", checked, disabled); |
| 1457 } | 1456 } |
| 1458 | 1457 |
| 1459 } // namespace options2 | 1458 } // namespace options2 |
| OLD | NEW |