| 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/inline_login_ui.h" | 5 #include "chrome/browser/ui/webui/inline_login_ui.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/signin/token_service.h" | 13 #include "chrome/browser/signin/token_service.h" |
| 14 #include "chrome/browser/signin/token_service_factory.h" | 14 #include "chrome/browser/signin/token_service_factory.h" |
| 15 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" | 15 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
| 16 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
| 17 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
| 18 #include "content/public/browser/web_ui_data_source.h" | 18 #include "content/public/browser/web_ui_data_source.h" |
| 19 #include "content/public/browser/web_ui_message_handler.h" | 19 #include "content/public/browser/web_ui_message_handler.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 InlineLoginUI::InlineLoginUI(content::WebUI* web_ui) | 150 InlineLoginUI::InlineLoginUI(content::WebUI* web_ui) |
| 151 : WebDialogUI(web_ui), | 151 : WebDialogUI(web_ui), |
| 152 auth_extension_(Profile::FromWebUI(web_ui)) { | 152 auth_extension_(Profile::FromWebUI(web_ui)) { |
| 153 Profile* profile = Profile::FromWebUI(web_ui); | 153 Profile* profile = Profile::FromWebUI(web_ui); |
| 154 content::WebUIDataSource::Add(profile, CreateWebUIDataSource()); | 154 content::WebUIDataSource::Add(profile, CreateWebUIDataSource()); |
| 155 | 155 |
| 156 web_ui->AddMessageHandler(new InlineLoginUIHandler(profile)); | 156 web_ui->AddMessageHandler(new InlineLoginUIHandler(profile)); |
| 157 } | 157 } |
| 158 | 158 |
| 159 InlineLoginUI::~InlineLoginUI() {} | 159 InlineLoginUI::~InlineLoginUI() {} |
| OLD | NEW |