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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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/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/location.h" 9 #include "base/location.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.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/internal_api/read_node.h" 14 #include "chrome/browser/sync/internal_api/read_node.h"
15 #include "chrome/browser/sync/internal_api/read_transaction.h" 15 #include "chrome/browser/sync/internal_api/read_transaction.h"
16 #include "chrome/browser/sync/internal_api/write_node.h" 16 #include "chrome/browser/sync/internal_api/write_node.h"
17 #include "chrome/browser/sync/internal_api/write_transaction.h" 17 #include "chrome/browser/sync/internal_api/write_transaction.h"
18 #include "chrome/browser/sync/profile_sync_service.h" 18 #include "chrome/browser/sync/profile_sync_service.h"
19 #include "chrome/browser/sync/protocol/password_specifics.pb.h" 19 #include "chrome/browser/sync/protocol/password_specifics.pb.h"
20 #include "net/base/escape.h" 20 #include "net/base/escape.h"
21 #include "webkit/glue/password_form.h" 21 #include "webkit/glue/password_form.h"
22 22
23 using content::BrowserThread;
24
23 namespace browser_sync { 25 namespace browser_sync {
24 26
25 const char kPasswordTag[] = "google_chrome_passwords"; 27 const char kPasswordTag[] = "google_chrome_passwords";
26 28
27 PasswordModelAssociator::PasswordModelAssociator( 29 PasswordModelAssociator::PasswordModelAssociator(
28 ProfileSyncService* sync_service, 30 ProfileSyncService* sync_service,
29 PasswordStore* password_store) 31 PasswordStore* password_store)
30 : sync_service_(sync_service), 32 : sync_service_(sync_service),
31 password_store_(password_store), 33 password_store_(password_store),
32 password_node_id_(sync_api::kInvalidId), 34 password_node_id_(sync_api::kInvalidId),
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 const std::string& password_element, 423 const std::string& password_element,
422 const std::string& signon_realm) { 424 const std::string& signon_realm) {
423 return EscapePath(origin_url) + "|" + 425 return EscapePath(origin_url) + "|" +
424 EscapePath(username_element) + "|" + 426 EscapePath(username_element) + "|" +
425 EscapePath(username_value) + "|" + 427 EscapePath(username_value) + "|" +
426 EscapePath(password_element) + "|" + 428 EscapePath(password_element) + "|" +
427 EscapePath(signon_realm); 429 EscapePath(signon_realm);
428 } 430 }
429 431
430 } // namespace browser_sync 432 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698