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

Unified Diff: chrome/browser/chromeos/login/profile_auth_data.h

Issue 11576065: Improved GAIA cookie retrieval logic in ChromeOS login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/profile_auth_data.h
diff --git a/chrome/browser/chromeos/login/profile_auth_data.h b/chrome/browser/chromeos/login/profile_auth_data.h
index 67e0f286a2496b3472d84d12753de9b341c78fa0..cd4a0fae095daeb07fd63ca19a53243585db9a1c 100644
--- a/chrome/browser/chromeos/login/profile_auth_data.h
+++ b/chrome/browser/chromeos/login/profile_auth_data.h
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_PROFILE_AUTH_DATA_H_
-#define CHROME_BROWSER_CHROMEOS_PROFILE_AUTH_DATA_H_
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
-#include "base/memory/ref_counted.h"
+#include <string>
+#include "base/callback.h"
class Profile;
@@ -17,13 +18,18 @@ class ProfileAuthData {
public:
// Transfers proxy authentication cache and optionally |transfer_cookies| and
// server bound certs from the profile that was used for authentication.
- static void Transfer(Profile* from_profile,
- Profile* to_profile,
- bool transfer_cookies);
+ // |cookies_transfered_callback| will be called on UI thread after cookie
+ // transfer part of this operation is completed.
+ static void Transfer(
+ Profile* from_profile,
+ Profile* to_profile,
+ bool transfer_cookies,
+ const base::Callback<void()>& cookies_transfered_callback);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ProfileAuthData);
};
} // namespace chromeos
-#endif // CHROME_BROWSER_CHROMEOS_PROFILE_AUTH_DATA_H_
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
« no previous file with comments | « chrome/browser/chromeos/login/login_utils_browsertest.cc ('k') | chrome/browser/chromeos/login/profile_auth_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698