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

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

Issue 502343002: Add account_id to signin manager notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@isauth
Patch Set: Fix android trybots Created 6 years, 3 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
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/auto_login_infobar_delegate.h ('k') | chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698