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

Side by Side Diff: chrome/installer/util/google_chrome_distribution.cc

Issue 1116263002: Revert of Add installer_util_unittests to the GN windows build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wintests3
Patch Set: Created 5 years, 7 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
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 // This file defines specific implementation of BrowserDistribution class for 5 // This file defines specific implementation of BrowserDistribution class for
6 // Google Chrome. 6 // Google Chrome.
7 7
8 #include "chrome/installer/util/google_chrome_distribution.h" 8 #include "chrome/installer/util/google_chrome_distribution.h"
9 9
10 #include <windows.h> 10 #include <windows.h>
11 #include <msi.h> 11 #include <msi.h>
12 12
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "base/win/registry.h" 18 #include "base/win/registry.h"
19 #include "base/win/windows_version.h" 19 #include "base/win/windows_version.h"
20 #include "chrome/common/chrome_icon_resources_win.h" 20 #include "chrome/common/chrome_icon_resources_win.h"
21 #include "chrome/common/net/test_server_locations.h" 21 #include "chrome/common/net/test_server_locations.h"
22 #include "chrome/installer/util/app_registration_data.h" 22 #include "chrome/installer/util/app_registration_data.h"
23 #include "chrome/installer/util/channel_info.h" 23 #include "chrome/installer/util/channel_info.h"
24 #include "chrome/installer/util/google_update_constants.h" 24 #include "chrome/installer/util/google_update_constants.h"
25 #include "chrome/installer/util/google_update_settings.h" 25 #include "chrome/installer/util/google_update_settings.h"
26 #include "chrome/installer/util/helper.h" 26 #include "chrome/installer/util/helper.h"
27 #include "chrome/installer/util/install_util.h" 27 #include "chrome/installer/util/install_util.h"
28 #include "chrome/installer/util/installer_util_strings.h"
29 #include "chrome/installer/util/l10n_string_util.h" 28 #include "chrome/installer/util/l10n_string_util.h"
30 #include "chrome/installer/util/uninstall_metrics.h" 29 #include "chrome/installer/util/uninstall_metrics.h"
31 #include "chrome/installer/util/updating_app_registration_data.h" 30 #include "chrome/installer/util/updating_app_registration_data.h"
32 #include "chrome/installer/util/util_constants.h" 31 #include "chrome/installer/util/util_constants.h"
33 #include "chrome/installer/util/wmi.h" 32 #include "chrome/installer/util/wmi.h"
34 #include "content/public/common/result_codes.h" 33 #include "content/public/common/result_codes.h"
35 34
35 #include "installer_util_strings.h" // NOLINT
36
36 namespace { 37 namespace {
37 38
38 const wchar_t kChromeGuid[] = L"{8A69D345-D564-463c-AFF1-A69D9E530F96}"; 39 const wchar_t kChromeGuid[] = L"{8A69D345-D564-463c-AFF1-A69D9E530F96}";
39 const wchar_t kBrowserAppId[] = L"Chrome"; 40 const wchar_t kBrowserAppId[] = L"Chrome";
40 const wchar_t kBrowserProgIdPrefix[] = L"ChromeHTML"; 41 const wchar_t kBrowserProgIdPrefix[] = L"ChromeHTML";
41 const wchar_t kBrowserProgIdDesc[] = L"Chrome HTML Document"; 42 const wchar_t kBrowserProgIdDesc[] = L"Chrome HTML Document";
42 const wchar_t kCommandExecuteImplUuid[] = 43 const wchar_t kCommandExecuteImplUuid[] =
43 L"{5C65F4B0-3651-4514-B207-D10CB699B14B}"; 44 L"{5C65F4B0-3651-4514-B207-D10CB699B14B}";
44 45
45 // Substitute the locale parameter in uninstall URL with whatever 46 // Substitute the locale parameter in uninstall URL with whatever
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 GetAppGuid()); 272 GetAppGuid());
272 } 273 }
273 274
274 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { 275 bool GoogleChromeDistribution::ShouldSetExperimentLabels() {
275 return true; 276 return true;
276 } 277 }
277 278
278 bool GoogleChromeDistribution::HasUserExperiments() { 279 bool GoogleChromeDistribution::HasUserExperiments() {
279 return true; 280 return true;
280 } 281 }
OLDNEW
« no previous file with comments | « chrome/installer/util/firewall_manager_win.cc ('k') | chrome/installer/util/google_chrome_sxs_distribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698