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

Side by Side Diff: chrome/browser/ui/sync/one_click_signin_helper.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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_impl.cc ('k') | chrome/browser/ui/sync/one_click_signin_sync_starter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698