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

Side by Side Diff: chrome_elf/chrome_elf_util.cc

Issue 1537333002: Switch to standard integer types in chrome_elf/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean Created 5 years 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
« no previous file with comments | « chrome_elf/blacklist/test/blacklist_test.cc ('k') | chrome_elf/dll_hash/dll_hash.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_elf/chrome_elf_util.h" 5 #include "chrome_elf/chrome_elf_util.h"
6 6
7 #include <assert.h> 7 #include <assert.h>
8 #include <windows.h> 8 #include <windows.h>
9 #include <stddef.h>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
12 13
13 ProcessType g_process_type = ProcessType::UNINITIALIZED; 14 ProcessType g_process_type = ProcessType::UNINITIALIZED;
14 15
15 namespace { 16 namespace {
16 17
17 const wchar_t kRegPathClientState[] = L"Software\\Google\\Update\\ClientState"; 18 const wchar_t kRegPathClientState[] = L"Software\\Google\\Update\\ClientState";
18 const wchar_t kRegPathClientStateMedium[] = 19 const wchar_t kRegPathClientStateMedium[] =
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 return; 215 return;
215 } 216 }
216 217
217 g_process_type = ProcessType::BROWSER_PROCESS; 218 g_process_type = ProcessType::BROWSER_PROCESS;
218 } 219 }
219 220
220 bool IsNonBrowserProcess() { 221 bool IsNonBrowserProcess() {
221 assert(g_process_type != ProcessType::UNINITIALIZED); 222 assert(g_process_type != ProcessType::UNINITIALIZED);
222 return g_process_type == ProcessType::NON_BROWSER_PROCESS; 223 return g_process_type == ProcessType::NON_BROWSER_PROCESS;
223 } 224 }
OLDNEW
« no previous file with comments | « chrome_elf/blacklist/test/blacklist_test.cc ('k') | chrome_elf/dll_hash/dll_hash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698