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

Side by Side Diff: rlz/win/lib/registry_util.cc

Issue 19851004: Update include paths in rlz for base/process changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « rlz/win/lib/process_info.cc ('k') | no next file » | 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) 2012 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 // A helper library to keep track of a user's key by SID. 5 // A helper library to keep track of a user's key by SID.
6 // Used by RLZ libary. Also to be used by SearchWithGoogle library. 6 // Used by RLZ libary. Also to be used by SearchWithGoogle library.
7 7
8 #include "rlz/win/lib/registry_util.h" 8 #include "rlz/win/lib/registry_util.h"
9 9
10 #include "base/process_util.h" 10 #include "base/process/process_handle.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/win/registry.h" 12 #include "base/win/registry.h"
13 #include "base/win/windows_version.h" 13 #include "base/win/windows_version.h"
14 #include "rlz/lib/assert.h" 14 #include "rlz/lib/assert.h"
15 #include "rlz/win/lib/process_info.h" 15 #include "rlz/win/lib/process_info.h"
16 16
17 namespace rlz_lib { 17 namespace rlz_lib {
18 18
19 bool RegKeyReadValue(base::win::RegKey& key, const wchar_t* name, 19 bool RegKeyReadValue(base::win::RegKey& key, const wchar_t* name,
20 char* value, size_t* value_size) { 20 char* value, size_t* value_size) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 if (level <= base::LOW_INTEGRITY) { 69 if (level <= base::LOW_INTEGRITY) {
70 ASSERT_STRING("UserKey::HasAccess: Cannot write from Low Integrity."); 70 ASSERT_STRING("UserKey::HasAccess: Cannot write from Low Integrity.");
71 return false; 71 return false;
72 } 72 }
73 } 73 }
74 return true; 74 return true;
75 } 75 }
76 76
77 } // namespace rlz_lib 77 } // namespace rlz_lib
OLDNEW
« no previous file with comments | « rlz/win/lib/process_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698