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

Side by Side Diff: chrome/browser/webdata/token_service_table.cc

Issue 13191007: Pass app_locale directly to AutofillTable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Chrome frame tests fix Created 7 years, 8 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/webdata/token_service_table.h" 5 #include "chrome/browser/webdata/token_service_table.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 } 43 }
44 return true; 44 return true;
45 } 45 }
46 46
47 bool TokenServiceTable::IsSyncable() { 47 bool TokenServiceTable::IsSyncable() {
48 return true; 48 return true;
49 } 49 }
50 50
51 bool TokenServiceTable::MigrateToVersion(int version, 51 bool TokenServiceTable::MigrateToVersion(int version,
52 const std::string& app_locale,
53 bool* update_compatible_version) { 52 bool* update_compatible_version) {
54 return true; 53 return true;
55 } 54 }
56 55
57 bool TokenServiceTable::RemoveAllTokens() { 56 bool TokenServiceTable::RemoveAllTokens() {
58 sql::Statement s(db_->GetUniqueStatement( 57 sql::Statement s(db_->GetUniqueStatement(
59 "DELETE FROM token_service")); 58 "DELETE FROM token_service"));
60 59
61 return s.Run(); 60 return s.Run();
62 } 61 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 if (entry_ok) { 98 if (entry_ok) {
100 Encryptor::DecryptString(encrypted_token, &decrypted_token); 99 Encryptor::DecryptString(encrypted_token, &decrypted_token);
101 (*tokens)[service] = decrypted_token; 100 (*tokens)[service] = decrypted_token;
102 } else { 101 } else {
103 NOTREACHED(); 102 NOTREACHED();
104 return false; 103 return false;
105 } 104 }
106 } 105 }
107 return true; 106 return true;
108 } 107 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/token_service_table.h ('k') | chrome/browser/webdata/token_service_table_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698