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

Side by Side Diff: chrome/browser/sync/glue/password_model_associator.cc

Issue 5783004: Keep deinlining stuff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Well, it all compiles locally? 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/sync/glue/password_model_associator.h" 5 #include "chrome/browser/sync/glue/password_model_associator.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/stl_util-inl.h" 9 #include "base/stl_util-inl.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 *has_nodes = sync_api::kInvalidId != password_node.GetFirstChildId(); 191 *has_nodes = sync_api::kInvalidId != password_node.GetFirstChildId();
192 return true; 192 return true;
193 } 193 }
194 194
195 void PasswordModelAssociator::AbortAssociation() { 195 void PasswordModelAssociator::AbortAssociation() {
196 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 196 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
197 AutoLock lock(abort_association_pending_lock_); 197 AutoLock lock(abort_association_pending_lock_);
198 abort_association_pending_ = true; 198 abort_association_pending_ = true;
199 } 199 }
200 200
201 const std::string* PasswordModelAssociator::GetChromeNodeFromSyncId(
202 int64 sync_id) {
203 return NULL;
204 }
205
206 bool PasswordModelAssociator::InitSyncNodeFromChromeId(
207 const std::string& node_id,
208 sync_api::BaseNode* sync_node) {
209 return false;
210 }
211
201 bool PasswordModelAssociator::IsAbortPending() { 212 bool PasswordModelAssociator::IsAbortPending() {
202 AutoLock lock(abort_association_pending_lock_); 213 AutoLock lock(abort_association_pending_lock_);
203 return abort_association_pending_; 214 return abort_association_pending_;
204 } 215 }
205 216
206 int64 PasswordModelAssociator::GetSyncIdFromChromeId( 217 int64 PasswordModelAssociator::GetSyncIdFromChromeId(
207 const std::string& password) { 218 const std::string& password) {
208 PasswordToSyncIdMap::const_iterator iter = id_map_.find(password); 219 PasswordToSyncIdMap::const_iterator iter = id_map_.find(password);
209 return iter == id_map_.end() ? sync_api::kInvalidId : iter->second; 220 return iter == id_map_.end() ? sync_api::kInvalidId : iter->second;
210 } 221 }
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 const std::string& password_element, 388 const std::string& password_element,
378 const std::string& signon_realm) { 389 const std::string& signon_realm) {
379 return EscapePath(origin_url) + "|" + 390 return EscapePath(origin_url) + "|" +
380 EscapePath(username_element) + "|" + 391 EscapePath(username_element) + "|" +
381 EscapePath(username_value) + "|" + 392 EscapePath(username_value) + "|" +
382 EscapePath(password_element) + "|" + 393 EscapePath(password_element) + "|" +
383 EscapePath(signon_realm); 394 EscapePath(signon_realm);
384 } 395 }
385 396
386 } // namespace browser_sync 397 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698