| OLD | NEW |
| 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/signin_email_confirmation_dialog.h" | 5 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_dialog.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/metrics/user_metrics.h" | 11 #include "base/metrics/user_metrics.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/ui/browser_dialogs.h" | 13 #include "chrome/browser/ui/browser_dialogs.h" |
| 14 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_ui.h" | 14 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_ui.h" |
| 15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 16 #include "chrome/grit/browser_resources.h" | |
| 17 #include "chrome/grit/generated_resources.h" | |
| 18 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 19 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
| 20 #include "content/public/browser/web_ui.h" | 18 #include "content/public/browser/web_ui.h" |
| 21 #include "content/public/browser/web_ui_message_handler.h" | 19 #include "content/public/browser/web_ui_message_handler.h" |
| 22 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 23 | 21 |
| 24 namespace { | 22 namespace { |
| 25 | 23 |
| 26 // Dialog size. | 24 // Dialog size. |
| 27 const int kDialogWidth = 512; | 25 const int kDialogWidth = 512; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 193 |
| 196 void SigninEmailConfirmationDialog::OnCloseContents( | 194 void SigninEmailConfirmationDialog::OnCloseContents( |
| 197 content::WebContents* source, | 195 content::WebContents* source, |
| 198 bool* out_close_dialog) { | 196 bool* out_close_dialog) { |
| 199 *out_close_dialog = true; | 197 *out_close_dialog = true; |
| 200 } | 198 } |
| 201 | 199 |
| 202 bool SigninEmailConfirmationDialog::ShouldShowDialogTitle() const { | 200 bool SigninEmailConfirmationDialog::ShouldShowDialogTitle() const { |
| 203 return false; | 201 return false; |
| 204 } | 202 } |
| OLD | NEW |