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

Side by Side Diff: chrome/browser/ui/auto_login_infobar_delegate.cc

Issue 468233004: Cleanup: Another round of removing unneeded grit #includes in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac, undo ui_localizer.mm 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/auto_login_infobar_delegate.h" 5 #include "chrome/browser/ui/auto_login_infobar_delegate.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 12 matching lines...) Expand all
23 #include "components/infobars/core/infobar.h" 23 #include "components/infobars/core/infobar.h"
24 #include "components/signin/core/browser/profile_oauth2_token_service.h" 24 #include "components/signin/core/browser/profile_oauth2_token_service.h"
25 #include "content/public/browser/navigation_controller.h" 25 #include "content/public/browser/navigation_controller.h"
26 #include "content/public/browser/page_navigator.h" 26 #include "content/public/browser/page_navigator.h"
27 #include "content/public/browser/web_contents.h" 27 #include "content/public/browser/web_contents.h"
28 #include "content/public/browser/web_contents_observer.h" 28 #include "content/public/browser/web_contents_observer.h"
29 #include "content/public/common/referrer.h" 29 #include "content/public/common/referrer.h"
30 #include "google_apis/gaia/gaia_constants.h" 30 #include "google_apis/gaia/gaia_constants.h"
31 #include "google_apis/gaia/gaia_urls.h" 31 #include "google_apis/gaia/gaia_urls.h"
32 #include "google_apis/gaia/ubertoken_fetcher.h" 32 #include "google_apis/gaia/ubertoken_fetcher.h"
33 #include "grit/chromium_strings.h"
34 #include "grit/generated_resources.h" 33 #include "grit/generated_resources.h"
35 #include "grit/theme_resources.h" 34 #include "grit/theme_resources.h"
36 #include "net/base/escape.h" 35 #include "net/base/escape.h"
37 #include "net/url_request/url_request.h" 36 #include "net/url_request/url_request.h"
38 #include "ui/base/l10n/l10n_util.h" 37 #include "ui/base/l10n/l10n_util.h"
39 38
40 #if defined(OS_ANDROID) 39 #if defined(OS_ANDROID)
41 #include "chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android .h" 40 #include "chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android .h"
42 #endif 41 #endif
43 42
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 web_contents->GetBrowserContext())->GetPrefs(); 228 web_contents->GetBrowserContext())->GetPrefs();
230 pref_service->SetBoolean(prefs::kAutologinEnabled, false); 229 pref_service->SetBoolean(prefs::kAutologinEnabled, false);
231 RecordHistogramAction(REJECTED); 230 RecordHistogramAction(REJECTED);
232 button_pressed_ = true; 231 button_pressed_ = true;
233 return true; 232 return true;
234 } 233 }
235 234
236 void AutoLoginInfoBarDelegate::GoogleSignedOut(const std::string& username) { 235 void AutoLoginInfoBarDelegate::GoogleSignedOut(const std::string& username) {
237 infobar()->RemoveSelf(); 236 infobar()->RemoveSelf();
238 } 237 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698