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

Side by Side Diff: sync/util/data_encryption_win.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some minor diffs Created 8 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // NOTE: this file is Winodws specific. 5 // NOTE: this file is Winodws specific.
6 6
7 #include "chrome/browser/sync/util/data_encryption.h" 7 #include "sync/util/data_encryption_win.h"
8 8
9 #include <windows.h> 9 #include <windows.h>
10 #include <wincrypt.h> 10 #include <wincrypt.h>
11 11
12 #include <cstddef> 12 #include <cstddef>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/logging.h" 16 #include "base/logging.h"
17 17
(...skipping 27 matching lines...) Expand all
45 &decrypted_data)) { 45 &decrypted_data)) {
46 LOG(ERROR) << "Decryption fails: "; 46 LOG(ERROR) << "Decryption fails: ";
47 return false; 47 return false;
48 } else { 48 } else {
49 out_data->assign(reinterpret_cast<const char*>(decrypted_data.pbData), 49 out_data->assign(reinterpret_cast<const char*>(decrypted_data.pbData),
50 decrypted_data.cbData); 50 decrypted_data.cbData);
51 LocalFree(decrypted_data.pbData); 51 LocalFree(decrypted_data.pbData);
52 return true; 52 return true;
53 } 53 }
54 } 54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698