| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |