OLD | NEW |
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 content::WebContents* web_contents = | 225 content::WebContents* web_contents = |
226 InfoBarService::WebContentsFromInfoBar(infobar()); | 226 InfoBarService::WebContentsFromInfoBar(infobar()); |
227 PrefService* pref_service = Profile::FromBrowserContext( | 227 PrefService* pref_service = Profile::FromBrowserContext( |
228 web_contents->GetBrowserContext())->GetPrefs(); | 228 web_contents->GetBrowserContext())->GetPrefs(); |
229 pref_service->SetBoolean(prefs::kAutologinEnabled, false); | 229 pref_service->SetBoolean(prefs::kAutologinEnabled, false); |
230 RecordHistogramAction(REJECTED); | 230 RecordHistogramAction(REJECTED); |
231 button_pressed_ = true; | 231 button_pressed_ = true; |
232 return true; | 232 return true; |
233 } | 233 } |
234 | 234 |
235 void AutoLoginInfoBarDelegate::GoogleSignedOut(const std::string& username) { | 235 void AutoLoginInfoBarDelegate::GoogleSignedOut( |
| 236 const std::string& account_id, |
| 237 const std::string& username) { |
236 infobar()->RemoveSelf(); | 238 infobar()->RemoveSelf(); |
237 } | 239 } |
OLD | NEW |