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

Side by Side Diff: chrome/browser/sync/util/user_settings_win.cc

Issue 7550059: Move sqlite_utils.* to sync/util/ directory. (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
« no previous file with comments | « chrome/browser/sync/util/user_settings_posix.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/util/user_settings.h" 5 #include "chrome/browser/sync/util/user_settings.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/sync/util/data_encryption.h" 10 #include "chrome/browser/sync/util/data_encryption.h"
11 #include "chrome/common/sqlite_utils.h" 11 #include "chrome/browser/sync/util/sqlite_utils.h"
12 12
13 using std::string; 13 using std::string;
14 14
15 namespace browser_sync { 15 namespace browser_sync {
16 16
17 void UserSettings::SetAuthTokenForService(const string& email, 17 void UserSettings::SetAuthTokenForService(const string& email,
18 const string& service_name, const string& long_lived_service_token) { 18 const string& service_name, const string& long_lived_service_token) {
19 ScopedDBHandle dbhandle(this); 19 ScopedDBHandle dbhandle(this);
20 SQLStatement statement; 20 SQLStatement statement;
21 statement.prepare(dbhandle.get(), 21 statement.prepare(dbhandle.get(),
(...skipping 26 matching lines...) Expand all
48 std::vector<uint8> encrypted_service_token; 48 std::vector<uint8> encrypted_service_token;
49 query.column_blob_as_vector(1, &encrypted_service_token); 49 query.column_blob_as_vector(1, &encrypted_service_token);
50 DecryptData(encrypted_service_token, service_token); 50 DecryptData(encrypted_service_token, service_token);
51 return true; 51 return true;
52 } 52 }
53 53
54 return false; 54 return false;
55 } 55 }
56 56
57 } // namespace browser_sync 57 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/user_settings_posix.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698