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

Side by Side Diff: chrome/browser/enumerate_modules_model_win.cc

Issue 469993006: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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) 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 "chrome/browser/enumerate_modules_model_win.h" 5 #include "chrome/browser/enumerate_modules_model_win.h"
6 6
7 #include <Tlhelp32.h> 7 #include <Tlhelp32.h>
8 #include <wintrust.h> 8 #include <wintrust.h>
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/environment.h" 13 #include "base/environment.h"
14 #include "base/file_version_info_win.h" 14 #include "base/file_version_info_win.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/i18n/case_conversion.h" 16 #include "base/i18n/case_conversion.h"
17 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
18 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "base/values.h" 22 #include "base/values.h"
23 #include "base/version.h" 23 #include "base/version.h"
24 #include "base/win/registry.h" 24 #include "base/win/registry.h"
25 #include "base/win/scoped_handle.h" 25 #include "base/win/scoped_handle.h"
26 #include "base/win/windows_version.h" 26 #include "base/win/windows_version.h"
27 #include "chrome/browser/chrome_notification_types.h" 27 #include "chrome/browser/chrome_notification_types.h"
28 #include "chrome/browser/net/service_providers_win.h" 28 #include "chrome/browser/net/service_providers_win.h"
29 #include "chrome/common/chrome_constants.h" 29 #include "chrome/common/chrome_constants.h"
30 #include "chrome/grit/generated_resources.h"
30 #include "content/public/browser/notification_service.h" 31 #include "content/public/browser/notification_service.h"
31 #include "crypto/sha2.h" 32 #include "crypto/sha2.h"
32 #include "grit/generated_resources.h"
33 #include "ui/base/l10n/l10n_util.h" 33 #include "ui/base/l10n/l10n_util.h"
34 34
35 using content::BrowserThread; 35 using content::BrowserThread;
36 36
37 // The period of time (in milliseconds) to wait until checking to see if any 37 // The period of time (in milliseconds) to wait until checking to see if any
38 // incompatible modules exist. 38 // incompatible modules exist.
39 static const int kModuleCheckDelayMs = 45 * 1000; 39 static const int kModuleCheckDelayMs = 45 * 1000;
40 40
41 // The path to the Shell Extension key in the Windows registry. 41 // The path to the Shell Extension key in the Windows registry.
42 static const wchar_t kRegPath[] = 42 static const wchar_t kRegPath[] =
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 GenerateHash(base::WideToUTF8(module.location), &location); 1036 GenerateHash(base::WideToUTF8(module.location), &location);
1037 GenerateHash(base::WideToUTF8(module.description), &description); 1037 GenerateHash(base::WideToUTF8(module.description), &description);
1038 GenerateHash(base::WideToUTF8(module.digital_signer), &signer); 1038 GenerateHash(base::WideToUTF8(module.digital_signer), &signer);
1039 1039
1040 base::string16 url = 1040 base::string16 url =
1041 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, 1041 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS,
1042 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location), 1042 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location),
1043 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer)); 1043 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer));
1044 return GURL(base::UTF16ToUTF8(url)); 1044 return GURL(base::UTF16ToUTF8(url));
1045 } 1045 }
OLDNEW
« no previous file with comments | « chrome/browser/download/save_package_file_picker.cc ('k') | chrome/browser/errorpage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698