Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: chrome/browser/ui/webui/options2/browser_options_handler.cc

Issue 10831204: Fix for number of ChromeOS browser_tests that were failing in BVTs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | content/test/browser_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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() :
368 std::string());
369 #endif 369 #endif
370 370
371 // Pass along sync status early so it will be available during page init. 371 // Pass along sync status early so it will be available during page init.
372 values->Set("syncData", GetSyncStateDictionary().release()); 372 values->Set("syncData", GetSyncStateDictionary().release());
373 373
374 values->SetString("privacyLearnMoreURL", chrome::kPrivacyLearnMoreURL); 374 values->SetString("privacyLearnMoreURL", chrome::kPrivacyLearnMoreURL);
375 values->SetString("sessionRestoreLearnMoreURL", 375 values->SetString("sessionRestoreLearnMoreURL",
376 chrome::kSessionRestoreLearnMoreURL); 376 chrome::kSessionRestoreLearnMoreURL);
377 377
378 values->SetString( 378 values->SetString(
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 } 1450 }
1451 1451
1452 void BrowserOptionsHandler::SetupSSLConfigSettings() { 1452 void BrowserOptionsHandler::SetupSSLConfigSettings() {
1453 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); 1453 base::FundamentalValue checked(rev_checking_enabled_.GetValue());
1454 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); 1454 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged());
1455 web_ui()->CallJavascriptFunction( 1455 web_ui()->CallJavascriptFunction(
1456 "BrowserOptions.setCheckRevocationCheckboxState", checked, disabled); 1456 "BrowserOptions.setCheckRevocationCheckboxState", checked, disabled);
1457 } 1457 }
1458 1458
1459 } // namespace options2 1459 } // namespace options2
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | content/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698