OLD | NEW |
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 #include "win8/delegate_execute/chrome_util.h" | 5 #include "win8/delegate_execute/chrome_util.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 #include <limits> | 12 #include <limits> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/md5.h" | 17 #include "base/md5.h" |
18 #include "base/process_util.h" | 18 #include "base/process_util.h" |
19 #include "base/string_util.h" | 19 #include "base/string_util.h" |
20 #include "base/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/win/registry.h" | 21 #include "base/win/registry.h" |
22 #include "base/win/scoped_comptr.h" | 22 #include "base/win/scoped_comptr.h" |
23 #include "base/win/scoped_handle.h" | 23 #include "base/win/scoped_handle.h" |
24 #include "base/win/win_util.h" | 24 #include "base/win/win_util.h" |
25 #include "google_update/google_update_idl.h" | 25 #include "google_update/google_update_idl.h" |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 #if defined(GOOGLE_CHROME_BUILD) | 29 #if defined(GOOGLE_CHROME_BUILD) |
30 const wchar_t kAppUserModelId[] = L"Chrome"; | 30 const wchar_t kAppUserModelId[] = L"Chrome"; |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 string16 suffix; | 259 string16 suffix; |
260 if (IsPerUserInstall(chrome_exe) && | 260 if (IsPerUserInstall(chrome_exe) && |
261 !GetUserSpecificRegistrySuffix(&suffix)) { | 261 !GetUserSpecificRegistrySuffix(&suffix)) { |
262 AtlTrace("%hs. GetUserSpecificRegistrySuffix failed.\n", | 262 AtlTrace("%hs. GetUserSpecificRegistrySuffix failed.\n", |
263 __FUNCTION__); | 263 __FUNCTION__); |
264 } | 264 } |
265 return app_id.append(suffix); | 265 return app_id.append(suffix); |
266 } | 266 } |
267 | 267 |
268 } // delegate_execute | 268 } // delegate_execute |
OLD | NEW |