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

Side by Side Diff: components/user_manager/user_manager.h

Issue 1394723002: This CL fixes the issue with login using alternative e-mails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: Created 5 years, 2 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 #ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_H_ 5 #ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_H_
6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_H_ 6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/user_manager/user.h" 10 #include "components/user_manager/user.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // fills in |out_value|. Otherwise returns false. 352 // fills in |out_value|. Otherwise returns false.
353 virtual bool GetKnownUserIntegerPref(const UserID& user_id, 353 virtual bool GetKnownUserIntegerPref(const UserID& user_id,
354 const std::string& path, 354 const std::string& path,
355 int* out_value) = 0; 355 int* out_value) = 0;
356 356
357 // Updates user's identified by |user_id| integer preference |path|. 357 // Updates user's identified by |user_id| integer preference |path|.
358 virtual void SetKnownUserIntegerPref(const UserID& user_id, 358 virtual void SetKnownUserIntegerPref(const UserID& user_id,
359 const std::string& path, 359 const std::string& path,
360 const int in_value) = 0; 360 const int in_value) = 0;
361 361
362 // Returns true if user's canonical email was found.
363 // Returns it in |out_email|.
364 virtual bool GetKnownUserCanonicalEmail(const UserID& user_id,
365 std::string* out_email) = 0;
366
362 // Updates |gaia_id| for user with |user_id|. 367 // Updates |gaia_id| for user with |user_id|.
363 // TODO(antrim): Update this once UserID contains GAIA ID. 368 // TODO(antrim): Update this once UserID contains GAIA ID.
364 virtual void UpdateGaiaID(const UserID& user_id, 369 virtual void UpdateGaiaID(const UserID& user_id,
365 const std::string& gaia_id) = 0; 370 const std::string& gaia_id) = 0;
366 371
367 // Find GAIA ID for user with |user_id|, fill in |out_value| and return true 372 // Find GAIA ID for user with |user_id|, fill in |out_value| and return true
368 // if GAIA ID was found or false otherwise. 373 // if GAIA ID was found or false otherwise.
369 // TODO(antrim): Update this once UserID contains GAIA ID. 374 // TODO(antrim): Update this once UserID contains GAIA ID.
370 virtual bool FindGaiaID(const UserID& user_id, std::string* out_value) = 0; 375 virtual bool FindGaiaID(const UserID& user_id, std::string* out_value) = 0;
371 376
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 static UserManager* GetForTesting(); 421 static UserManager* GetForTesting();
417 422
418 // Sets UserManager instance to the given |user_manager|. 423 // Sets UserManager instance to the given |user_manager|.
419 // Returns the previous value of the instance. 424 // Returns the previous value of the instance.
420 static UserManager* SetForTesting(UserManager* user_manager); 425 static UserManager* SetForTesting(UserManager* user_manager);
421 }; 426 };
422 427
423 } // namespace user_manager 428 } // namespace user_manager
424 429
425 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ 430 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc ('k') | components/user_manager/user_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698