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

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

Issue 880313002: webui: add [lang] attribute to <html> element on all webui pages so (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cros Created 5 years, 10 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
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_ui.h" 5 #include "chrome/browser/ui/webui/signin/user_manager_ui.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" 10 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h"
10 #include "chrome/browser/ui/webui/theme_source.h" 11 #include "chrome/browser/ui/webui/theme_source.h"
11 #include "chrome/common/url_constants.h" 12 #include "chrome/common/url_constants.h"
12 #include "content/public/browser/web_ui.h" 13 #include "content/public/browser/web_ui.h"
13 #include "content/public/browser/web_ui_data_source.h" 14 #include "content/public/browser/web_ui_data_source.h"
14 #include "grit/browser_resources.h" 15 #include "grit/browser_resources.h"
15 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
16 #include "ui/base/webui/web_ui_util.h" 17 #include "ui/base/webui/web_ui_util.h"
17 18
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 53
53 source->SetDefaultResource(IDR_USER_MANAGER_HTML); 54 source->SetDefaultResource(IDR_USER_MANAGER_HTML);
54 source->AddResourcePath(kUserManagerJSPath, IDR_USER_MANAGER_JS); 55 source->AddResourcePath(kUserManagerJSPath, IDR_USER_MANAGER_JS);
55 56
56 return source; 57 return source;
57 } 58 }
58 59
59 void UserManagerUI::GetLocalizedStrings( 60 void UserManagerUI::GetLocalizedStrings(
60 base::DictionaryValue* localized_strings) { 61 base::DictionaryValue* localized_strings) {
61 user_manager_screen_handler_->GetLocalizedValues(localized_strings); 62 user_manager_screen_handler_->GetLocalizedValues(localized_strings);
62 webui::SetFontAndTextDirection(localized_strings); 63 const std::string& app_locale = g_browser_process->GetApplicationLocale();
64 webui::SetLoadTimeDataDefaults(app_locale, localized_strings);
63 65
64 #if defined(GOOGLE_CHROME_BUILD) 66 #if defined(GOOGLE_CHROME_BUILD)
65 localized_strings->SetString("buildType", "chrome"); 67 localized_strings->SetString("buildType", "chrome");
66 #else 68 #else
67 localized_strings->SetString("buildType", "chromium"); 69 localized_strings->SetString("buildType", "chromium");
68 #endif 70 #endif
69 } 71 }
70 72
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/options_ui.cc ('k') | chrome/browser/ui/webui/system_info_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698