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

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

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/profile_signin_confirmation_ui.h" 5 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_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/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
11 #include "content/public/browser/web_ui.h" 11 #include "content/public/browser/web_ui.h"
12 #include "content/public/browser/web_ui_data_source.h" 12 #include "content/public/browser/web_ui_data_source.h"
13 #include "grit/browser_resources.h" 13 #include "grit/browser_resources.h"
14 #include "grit/chromium_strings.h" 14 #include "grit/chromium_strings.h"
15 #include "grit/generated_resources.h" 15 #include "grit/generated_resources.h"
16 #include "ui/base/l10n/l10n_util.h"
17 #include "ui/base/resource/resource_bundle.h"
18 16
19 ProfileSigninConfirmationUI::ProfileSigninConfirmationUI(content::WebUI* web_ui) 17 ProfileSigninConfirmationUI::ProfileSigninConfirmationUI(content::WebUI* web_ui)
20 : ConstrainedWebDialogUI(web_ui) { 18 : ConstrainedWebDialogUI(web_ui) {
21 content::WebUIDataSource* html_source = content::WebUIDataSource::Create( 19 content::WebUIDataSource* html_source = content::WebUIDataSource::Create(
22 chrome::kChromeUIProfileSigninConfirmationHost); 20 chrome::kChromeUIProfileSigninConfirmationHost);
23 html_source->SetUseJsonJSFormatV2(); 21 html_source->SetUseJsonJSFormatV2();
24 22
25 html_source->AddLocalizedString( 23 html_source->AddLocalizedString(
26 "createProfileButtonText", 24 "createProfileButtonText",
27 IDS_ENTERPRISE_SIGNIN_CREATE_NEW_PROFILE); 25 IDS_ENTERPRISE_SIGNIN_CREATE_NEW_PROFILE);
(...skipping 24 matching lines...) Expand all
52 html_source->AddResourcePath("profile_signin_confirmation.css", 50 html_source->AddResourcePath("profile_signin_confirmation.css",
53 IDR_PROFILE_SIGNIN_CONFIRMATION_CSS); 51 IDR_PROFILE_SIGNIN_CONFIRMATION_CSS);
54 html_source->SetDefaultResource(IDR_PROFILE_SIGNIN_CONFIRMATION_HTML); 52 html_source->SetDefaultResource(IDR_PROFILE_SIGNIN_CONFIRMATION_HTML);
55 53
56 Profile* profile = Profile::FromWebUI(web_ui); 54 Profile* profile = Profile::FromWebUI(web_ui);
57 content::WebUIDataSource::Add(profile, html_source); 55 content::WebUIDataSource::Add(profile, html_source);
58 } 56 }
59 57
60 ProfileSigninConfirmationUI::~ProfileSigninConfirmationUI() { 58 ProfileSigninConfirmationUI::~ProfileSigninConfirmationUI() {
61 } 59 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/quota_internals/quota_internals_ui.cc ('k') | chrome/browser/ui/webui/signin_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698