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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 #include "google_apis/gaia/gaia_auth_util.h" | 80 #include "google_apis/gaia/gaia_auth_util.h" |
81 #include "google_apis/gaia/gaia_urls.h" | 81 #include "google_apis/gaia/gaia_urls.h" |
82 #include "grit/chromium_strings.h" | 82 #include "grit/chromium_strings.h" |
83 #include "grit/generated_resources.h" | 83 #include "grit/generated_resources.h" |
84 #include "grit/theme_resources.h" | 84 #include "grit/theme_resources.h" |
85 #include "ipc/ipc_message_macros.h" | 85 #include "ipc/ipc_message_macros.h" |
86 #include "net/base/url_util.h" | 86 #include "net/base/url_util.h" |
87 #include "net/cookies/cookie_monster.h" | 87 #include "net/cookies/cookie_monster.h" |
88 #include "net/url_request/url_request.h" | 88 #include "net/url_request/url_request.h" |
89 #include "ui/base/l10n/l10n_util.h" | 89 #include "ui/base/l10n/l10n_util.h" |
90 #include "ui/base/resource/resource_bundle.h" | |
91 #include "url/gurl.h" | 90 #include "url/gurl.h" |
92 | 91 |
93 | 92 |
94 namespace { | 93 namespace { |
95 | 94 |
96 // ConfirmEmailDialogDelegate ------------------------------------------------- | 95 // ConfirmEmailDialogDelegate ------------------------------------------------- |
97 | 96 |
98 class ConfirmEmailDialogDelegate : public TabModalConfirmDialogDelegate { | 97 class ConfirmEmailDialogDelegate : public TabModalConfirmDialogDelegate { |
99 public: | 98 public: |
100 enum Action { | 99 enum Action { |
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 // If the web contents is showing a blank page and not about to be closed, | 1623 // If the web contents is showing a blank page and not about to be closed, |
1625 // redirect to the NTP or apps page. | 1624 // redirect to the NTP or apps page. |
1626 if (signin::IsContinueUrlForWebBasedSigninFlow(current_url) && | 1625 if (signin::IsContinueUrlForWebBasedSigninFlow(current_url) && |
1627 !signin::IsAutoCloseEnabledInURL(original_continue_url_)) { | 1626 !signin::IsAutoCloseEnabledInURL(original_continue_url_)) { |
1628 RedirectToNtpOrAppsPage( | 1627 RedirectToNtpOrAppsPage( |
1629 web_contents(), | 1628 web_contents(), |
1630 signin::GetSourceForPromoURL(original_continue_url_)); | 1629 signin::GetSourceForPromoURL(original_continue_url_)); |
1631 } | 1630 } |
1632 } | 1631 } |
1633 } | 1632 } |
OLD | NEW |