| OLD | NEW |
| 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/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.h" | 9 #include "base/stl_util.h" |
| 10 #include "base/tracked.h" | 10 #include "base/tracked.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/password_manager/password_store.h" | 12 #include "chrome/browser/password_manager/password_store.h" |
| 13 #include "chrome/browser/sync/api/sync_error.h" | 13 #include "chrome/browser/sync/api/sync_error.h" |
| 14 #include "chrome/browser/sync/engine/syncapi.h" | 14 #include "chrome/browser/sync/internal_api/read_node.h" |
| 15 #include "chrome/browser/sync/internal_api/read_transaction.h" |
| 16 #include "chrome/browser/sync/internal_api/write_node.h" |
| 17 #include "chrome/browser/sync/internal_api/write_transaction.h" |
| 15 #include "chrome/browser/sync/profile_sync_service.h" | 18 #include "chrome/browser/sync/profile_sync_service.h" |
| 16 #include "chrome/browser/sync/protocol/password_specifics.pb.h" | 19 #include "chrome/browser/sync/protocol/password_specifics.pb.h" |
| 17 #include "net/base/escape.h" | 20 #include "net/base/escape.h" |
| 18 #include "webkit/glue/password_form.h" | 21 #include "webkit/glue/password_form.h" |
| 19 | 22 |
| 20 namespace browser_sync { | 23 namespace browser_sync { |
| 21 | 24 |
| 22 const char kPasswordTag[] = "google_chrome_passwords"; | 25 const char kPasswordTag[] = "google_chrome_passwords"; |
| 23 | 26 |
| 24 PasswordModelAssociator::PasswordModelAssociator( | 27 PasswordModelAssociator::PasswordModelAssociator( |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 const std::string& password_element, | 421 const std::string& password_element, |
| 419 const std::string& signon_realm) { | 422 const std::string& signon_realm) { |
| 420 return EscapePath(origin_url) + "|" + | 423 return EscapePath(origin_url) + "|" + |
| 421 EscapePath(username_element) + "|" + | 424 EscapePath(username_element) + "|" + |
| 422 EscapePath(username_value) + "|" + | 425 EscapePath(username_value) + "|" + |
| 423 EscapePath(password_element) + "|" + | 426 EscapePath(password_element) + "|" + |
| 424 EscapePath(signon_realm); | 427 EscapePath(signon_realm); |
| 425 } | 428 } |
| 426 | 429 |
| 427 } // namespace browser_sync | 430 } // namespace browser_sync |
| OLD | NEW |