| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sync/one_click_signin_helper.h" | 5 #include "chrome/browser/ui/sync/one_click_signin_helper.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 TabModalConfirmDialog::Create( | 410 TabModalConfirmDialog::Create( |
| 411 new ConfirmEmailDialogDelegate(contents, last_email, email, | 411 new ConfirmEmailDialogDelegate(contents, last_email, email, |
| 412 callback), contents); | 412 callback), contents); |
| 413 } | 413 } |
| 414 | 414 |
| 415 ConfirmEmailDialogDelegate::ConfirmEmailDialogDelegate( | 415 ConfirmEmailDialogDelegate::ConfirmEmailDialogDelegate( |
| 416 content::WebContents* contents, | 416 content::WebContents* contents, |
| 417 const std::string& last_email, | 417 const std::string& last_email, |
| 418 const std::string& email, | 418 const std::string& email, |
| 419 Callback callback) | 419 Callback callback) |
| 420 : TabModalConfirmDialogDelegate(contents), | 420 : last_email_(last_email), |
| 421 last_email_(last_email), | |
| 422 email_(email), | 421 email_(email), |
| 423 callback_(callback) { | 422 callback_(callback) { |
| 424 } | 423 } |
| 425 | 424 |
| 426 ConfirmEmailDialogDelegate::~ConfirmEmailDialogDelegate() { | 425 ConfirmEmailDialogDelegate::~ConfirmEmailDialogDelegate() { |
| 427 } | 426 } |
| 428 | 427 |
| 429 string16 ConfirmEmailDialogDelegate::GetTitle() { | 428 string16 ConfirmEmailDialogDelegate::GetTitle() { |
| 430 return l10n_util::GetStringUTF16( | 429 return l10n_util::GetStringUTF16( |
| 431 IDS_ONE_CLICK_SIGNIN_CONFIRM_EMAIL_DIALOG_TITLE); | 430 IDS_ONE_CLICK_SIGNIN_CONFIRM_EMAIL_DIALOG_TITLE); |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 content::Referrer(), | 1312 content::Referrer(), |
| 1314 content::PAGE_TRANSITION_AUTO_TOPLEVEL, | 1313 content::PAGE_TRANSITION_AUTO_TOPLEVEL, |
| 1315 std::string()); | 1314 std::string()); |
| 1316 } | 1315 } |
| 1317 } | 1316 } |
| 1318 | 1317 |
| 1319 // Clear the redirect URL. | 1318 // Clear the redirect URL. |
| 1320 redirect_url_ = GURL(); | 1319 redirect_url_ = GURL(); |
| 1321 sync_service->RemoveObserver(this); | 1320 sync_service->RemoveObserver(this); |
| 1322 } | 1321 } |
| OLD | NEW |