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

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

Issue 2957943003: MD User manager: Migrate from PaperDialogBehavior to cr-dialog. (Closed)
Patch Set: Restore color. Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/md_user_manager_ui.h" 5 #include "chrome/browser/ui/webui/signin/md_user_manager_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 source->AddResourcePath("strings.html", IDR_MD_USER_MANAGER_STRINGS_HTML); 90 source->AddResourcePath("strings.html", IDR_MD_USER_MANAGER_STRINGS_HTML);
91 source->AddResourcePath("supervised_user_create_confirm.html", 91 source->AddResourcePath("supervised_user_create_confirm.html",
92 IDR_MD_SUPERVISED_USER_CREATE_CONFIRM_HTML); 92 IDR_MD_SUPERVISED_USER_CREATE_CONFIRM_HTML);
93 source->AddResourcePath("supervised_user_create_confirm.js", 93 source->AddResourcePath("supervised_user_create_confirm.js",
94 IDR_MD_SUPERVISED_USER_CREATE_CONFIRM_JS); 94 IDR_MD_SUPERVISED_USER_CREATE_CONFIRM_JS);
95 source->AddResourcePath("supervised_user_learn_more.html", 95 source->AddResourcePath("supervised_user_learn_more.html",
96 IDR_MD_SUPERVISED_USER_LEARN_MORE_HTML); 96 IDR_MD_SUPERVISED_USER_LEARN_MORE_HTML);
97 source->AddResourcePath("supervised_user_learn_more.js", 97 source->AddResourcePath("supervised_user_learn_more.js",
98 IDR_MD_SUPERVISED_USER_LEARN_MORE_JS); 98 IDR_MD_SUPERVISED_USER_LEARN_MORE_JS);
99 source->AddResourcePath("user_manager.js", IDR_MD_USER_MANAGER_JS); 99 source->AddResourcePath("user_manager.js", IDR_MD_USER_MANAGER_JS);
100 source->AddResourcePath("user_manager_dialog.html",
101 IDR_MD_USER_MANAGER_DIALOG_HTML);
102 source->AddResourcePath("user_manager_dialog.js",
103 IDR_MD_USER_MANAGER_DIALOG_JS);
104 source->AddResourcePath("user_manager_pages.html", 100 source->AddResourcePath("user_manager_pages.html",
105 IDR_MD_USER_MANAGER_PAGES_HTML); 101 IDR_MD_USER_MANAGER_PAGES_HTML);
106 source->AddResourcePath("user_manager_pages.js", 102 source->AddResourcePath("user_manager_pages.js",
107 IDR_MD_USER_MANAGER_PAGES_JS); 103 IDR_MD_USER_MANAGER_PAGES_JS);
108 source->AddResourcePath("user_manager_tutorial.html", 104 source->AddResourcePath("user_manager_tutorial.html",
109 IDR_MD_USER_MANAGER_TUTORIAL_HTML); 105 IDR_MD_USER_MANAGER_TUTORIAL_HTML);
110 source->AddResourcePath("user_manager_tutorial.js", 106 source->AddResourcePath("user_manager_tutorial.js",
111 IDR_MD_USER_MANAGER_TUTORIAL_JS); 107 IDR_MD_USER_MANAGER_TUTORIAL_JS);
112 108
113 source->SetDefaultResource(IDR_MD_USER_MANAGER_HTML); 109 source->SetDefaultResource(IDR_MD_USER_MANAGER_HTML);
(...skipping 10 matching lines...) Expand all
124 #endif 120 #endif
125 const std::string& app_locale = g_browser_process->GetApplicationLocale(); 121 const std::string& app_locale = g_browser_process->GetApplicationLocale();
126 webui::SetLoadTimeDataDefaults(app_locale, localized_strings); 122 webui::SetLoadTimeDataDefaults(app_locale, localized_strings);
127 123
128 #if defined(GOOGLE_CHROME_BUILD) 124 #if defined(GOOGLE_CHROME_BUILD)
129 localized_strings->SetString("buildType", "chrome"); 125 localized_strings->SetString("buildType", "chrome");
130 #else 126 #else
131 localized_strings->SetString("buildType", "chromium"); 127 localized_strings->SetString("buildType", "chromium");
132 #endif 128 #endif
133 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698