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

Unified Diff: chrome/browser/chromeos/login/login_performer.cc

Issue 5641001: [cros] Fetch cookies after online authentication is successful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 10 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/login_performer.cc
diff --git a/chrome/browser/chromeos/login/login_performer.cc b/chrome/browser/chromeos/login/login_performer.cc
index 5701e861867e1825d7d5a46bf34c3754287b9a15..d1b2281f0f5a42c88d6cd25f56ab8dc189bd7192 100644
--- a/chrome/browser/chromeos/login/login_performer.cc
+++ b/chrome/browser/chromeos/login/login_performer.cc
@@ -20,10 +20,10 @@
#include "chrome/browser/chromeos/login/screen_locker.h"
#include "chrome/browser/chromeos/user_cros_settings_provider.h"
#include "chrome/browser/metrics/user_metrics.h"
-#include "chrome/common/notification_service.h"
-#include "chrome/common/notification_type.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/common/notification_service.h"
+#include "chrome/common/notification_type.h"
#include "grit/generated_resources.h"
namespace chromeos {
@@ -127,9 +127,11 @@ void LoginPerformer::OnLoginSuccess(
DCHECK(!pending_requests)
<< "Pending request w/o delegate_ should not happen!";
// Online login has succeeded.
- // TODO(nkostylev): Execute CookieFetcher->AttemptFetch() here once
- // async login is implemented.
- // http://crosbug.com/9814
+ Profile* profile =
+ g_browser_process->profile_manager()->GetDefaultProfile();
+ LoginUtils::Get()->FetchCookies(profile, credentials);
+ LoginUtils::Get()->FetchTokens(profile, credentials);
+
if (ScreenLocker::default_screen_locker()) {
DVLOG(1) << "Online login OK - unlocking screen.";
RequestScreenUnlock();
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.cc ('k') | chrome/browser/chromeos/login/login_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698