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

Side by Side Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.cc

Issue 418133007: Fix warnings about missing i18n strings in desktop user manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/signin/user_manager_screen_handler.h" 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/value_conversions.h" 9 #include "base/value_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 localized_strings->SetString("slideCompleteUserNotFound", 557 localized_strings->SetString("slideCompleteUserNotFound",
558 l10n_util::GetStringUTF16( 558 l10n_util::GetStringUTF16(
559 IDS_USER_MANAGER_TUTORIAL_SLIDE_OUTRO_USER_NOT_FOUND)); 559 IDS_USER_MANAGER_TUTORIAL_SLIDE_OUTRO_USER_NOT_FOUND));
560 localized_strings->SetString("slideCompleteAddUser", 560 localized_strings->SetString("slideCompleteAddUser",
561 l10n_util::GetStringUTF16( 561 l10n_util::GetStringUTF16(
562 IDS_USER_MANAGER_TUTORIAL_SLIDE_OUTRO_ADD_USER)); 562 IDS_USER_MANAGER_TUTORIAL_SLIDE_OUTRO_ADD_USER));
563 563
564 // Strings needed for the user_pod_template public account div, but not ever 564 // Strings needed for the user_pod_template public account div, but not ever
565 // actually displayed for desktop users. 565 // actually displayed for desktop users.
566 localized_strings->SetString("publicAccountReminder", base::string16()); 566 localized_strings->SetString("publicAccountReminder", base::string16());
567 localized_strings->SetString("publicSessionLanguageAndInput",
568 base::string16());
567 localized_strings->SetString("publicAccountEnter", base::string16()); 569 localized_strings->SetString("publicAccountEnter", base::string16());
568 localized_strings->SetString("publicAccountEnterAccessibleName", 570 localized_strings->SetString("publicAccountEnterAccessibleName",
569 base::string16()); 571 base::string16());
572 localized_strings->SetString("publicSessionSelectLanguage", base::string16());
573 localized_strings->SetString("publicSessionSelectKeyboard", base::string16());
570 localized_strings->SetString("signinBannerText", base::string16()); 574 localized_strings->SetString("signinBannerText", base::string16());
571 localized_strings->SetString("launchAppButton", base::string16()); 575 localized_strings->SetString("launchAppButton", base::string16());
572 localized_strings->SetString("multiProfilesRestrictedPolicyTitle", 576 localized_strings->SetString("multiProfilesRestrictedPolicyTitle",
573 base::string16()); 577 base::string16());
574 localized_strings->SetString("multiProfilesNotAllowedPolicyMsg", 578 localized_strings->SetString("multiProfilesNotAllowedPolicyMsg",
575 base::string16()); 579 base::string16());
576 localized_strings->SetString("multiProfilesPrimaryOnlyPolicyMsg", 580 localized_strings->SetString("multiProfilesPrimaryOnlyPolicyMsg",
577 base::string16()); 581 base::string16());
582 localized_strings->SetString("multiProfilesOwnerPrimaryOnlyMsg",
583 base::string16());
578 } 584 }
579 585
580 void UserManagerScreenHandler::SendUserList() { 586 void UserManagerScreenHandler::SendUserList() {
581 base::ListValue users_list; 587 base::ListValue users_list;
582 base::FilePath active_profile_path = 588 base::FilePath active_profile_path =
583 web_ui()->GetWebContents()->GetBrowserContext()->GetPath(); 589 web_ui()->GetWebContents()->GetBrowserContext()->GetPath();
584 const ProfileInfoCache& info_cache = 590 const ProfileInfoCache& info_cache =
585 g_browser_process->profile_manager()->GetProfileInfoCache(); 591 g_browser_process->profile_manager()->GetProfileInfoCache();
586 592
587 user_auth_type_map_.clear(); 593 user_auth_type_map_.clear();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 } else { 652 } else {
647 web_ui()->CallJavascriptFunction( 653 web_ui()->CallJavascriptFunction(
648 "cr.ui.Oobe.showSignInError", 654 "cr.ui.Oobe.showSignInError",
649 base::FundamentalValue(0), 655 base::FundamentalValue(0),
650 base::StringValue( 656 base::StringValue(
651 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING)), 657 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING)),
652 base::StringValue(""), 658 base::StringValue(""),
653 base::FundamentalValue(0)); 659 base::FundamentalValue(0));
654 } 660 }
655 } 661 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698