OLD | NEW |
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/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" | 9 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" |
10 #include "chrome/browser/ui/webui/theme_source.h" | 10 #include "chrome/browser/ui/webui/theme_source.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 source->SetDefaultResource(IDR_USER_MANAGER_HTML); | 53 source->SetDefaultResource(IDR_USER_MANAGER_HTML); |
54 source->AddResourcePath(kUserManagerJSPath, IDR_USER_MANAGER_JS); | 54 source->AddResourcePath(kUserManagerJSPath, IDR_USER_MANAGER_JS); |
55 | 55 |
56 return source; | 56 return source; |
57 } | 57 } |
58 | 58 |
59 void UserManagerUI::GetLocalizedStrings( | 59 void UserManagerUI::GetLocalizedStrings( |
60 base::DictionaryValue* localized_strings) { | 60 base::DictionaryValue* localized_strings) { |
61 user_manager_screen_handler_->GetLocalizedValues(localized_strings); | 61 user_manager_screen_handler_->GetLocalizedValues(localized_strings); |
62 webui::SetFontAndTextDirection(localized_strings); | 62 webui::SetTextDirection(localized_strings); |
63 | 63 |
64 #if defined(GOOGLE_CHROME_BUILD) | 64 #if defined(GOOGLE_CHROME_BUILD) |
65 localized_strings->SetString("buildType", "chrome"); | 65 localized_strings->SetString("buildType", "chrome"); |
66 #else | 66 #else |
67 localized_strings->SetString("buildType", "chromium"); | 67 localized_strings->SetString("buildType", "chromium"); |
68 #endif | 68 #endif |
69 } | 69 } |
70 | 70 |
OLD | NEW |