| 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/options/browser_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 l10n_util::GetStringFUTF16(IDS_AUTOLAUNCH_TEXT, | 375 l10n_util::GetStringFUTF16(IDS_AUTOLAUNCH_TEXT, |
| 376 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); | 376 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
| 377 | 377 |
| 378 #if defined(OS_CHROMEOS) | 378 #if defined(OS_CHROMEOS) |
| 379 values->SetString("username", | 379 values->SetString("username", |
| 380 chromeos::UserManager::Get()->IsUserLoggedIn() ? | 380 chromeos::UserManager::Get()->IsUserLoggedIn() ? |
| 381 chromeos::UserManager::Get()->GetLoggedInUser().email() : | 381 chromeos::UserManager::Get()->GetLoggedInUser().email() : |
| 382 std::string()); | 382 std::string()); |
| 383 | 383 |
| 384 values->SetString( | 384 values->SetString( |
| 385 "factoryResetWarning", |
| 386 l10n_util::GetStringFUTF16( |
| 387 IDS_OPTIONS_FACTORY_RESET_WARNING, |
| 388 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))); |
| 389 |
| 390 values->SetString( |
| 385 "factoryResetDescription", | 391 "factoryResetDescription", |
| 386 l10n_util::GetStringFUTF16( | 392 l10n_util::GetStringFUTF16( |
| 387 IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, | 393 IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, |
| 388 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))); | 394 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))); |
| 389 #endif | 395 #endif |
| 390 | 396 |
| 391 // Pass along sync status early so it will be available during page init. | 397 // Pass along sync status early so it will be available during page init. |
| 392 values->Set("syncData", GetSyncStateDictionary().release()); | 398 values->Set("syncData", GetSyncStateDictionary().release()); |
| 393 | 399 |
| 394 values->SetString("privacyLearnMoreURL", chrome::kPrivacyLearnMoreURL); | 400 values->SetString("privacyLearnMoreURL", chrome::kPrivacyLearnMoreURL); |
| (...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1503 } | 1509 } |
| 1504 | 1510 |
| 1505 void BrowserOptionsHandler::SetupSSLConfigSettings() { | 1511 void BrowserOptionsHandler::SetupSSLConfigSettings() { |
| 1506 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); | 1512 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); |
| 1507 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); | 1513 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); |
| 1508 web_ui()->CallJavascriptFunction( | 1514 web_ui()->CallJavascriptFunction( |
| 1509 "BrowserOptions.setCheckRevocationCheckboxState", checked, disabled); | 1515 "BrowserOptions.setCheckRevocationCheckboxState", checked, disabled); |
| 1510 } | 1516 } |
| 1511 | 1517 |
| 1512 } // namespace options | 1518 } // namespace options |
| OLD | NEW |