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

Side by Side Diff: chrome/browser/chromeos/login/auth_attempt_state.cc

Issue 7584026: Encrypted OAuth1 all access token and secret with system salt for now, will replace this with use... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chromeos/login/auth_attempt_state.h" 5 #include "chrome/browser/chromeos/login/auth_attempt_state.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/common/net/gaia/gaia_auth_consumer.h" 9 #include "chrome/common/net/gaia/gaia_auth_consumer.h"
10 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" 10 #include "chrome/common/net/gaia/gaia_auth_fetcher.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 AuthAttemptState::AuthAttemptState(const std::string& username, 52 AuthAttemptState::AuthAttemptState(const std::string& username,
53 const std::string& password, 53 const std::string& password,
54 const std::string& ascii_hash, 54 const std::string& ascii_hash,
55 const bool user_is_new) 55 const bool user_is_new)
56 : username(username), 56 : username(username),
57 password(password), 57 password(password),
58 ascii_hash(ascii_hash), 58 ascii_hash(ascii_hash),
59 unlock(true), 59 unlock(true),
60 online_complete_(true), 60 online_complete_(false),
61 online_outcome_(LoginFailure::NONE), 61 online_outcome_(LoginFailure::NONE),
62 credentials_(GaiaAuthConsumer::ClientLoginResult()), 62 credentials_(GaiaAuthConsumer::ClientLoginResult()),
63 hosted_policy_(GaiaAuthFetcher::HostedAccountsAllowed), 63 hosted_policy_(GaiaAuthFetcher::HostedAccountsAllowed),
64 is_first_time_user_(user_is_new), 64 is_first_time_user_(user_is_new),
65 cryptohome_complete_(false), 65 cryptohome_complete_(false),
66 cryptohome_outcome_(false), 66 cryptohome_outcome_(false),
67 cryptohome_code_(kCryptohomeMountErrorNone) { 67 cryptohome_code_(kCryptohomeMountErrorNone) {
68 } 68 }
69 69
70 AuthAttemptState::~AuthAttemptState() {} 70 AuthAttemptState::~AuthAttemptState() {}
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 143
144 void AuthAttemptState::SetOAuth1Token(const std::string& token, 144 void AuthAttemptState::SetOAuth1Token(const std::string& token,
145 const std::string& secret) { 145 const std::string& secret) {
146 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 146 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
147 oauth1_access_token_ = token; 147 oauth1_access_token_ = token;
148 oauth1_access_secret_ = secret; 148 oauth1_access_secret_ = secret;
149 } 149 }
150 150
151 } // namespace chromeos 151 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/cryptohome_library.cc ('k') | chrome/browser/chromeos/login/authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698