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

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

Issue 6100003: Update checks of multi-installs now use the proper app guid.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « chrome/installer/util/helper.h ('k') | chrome/installer/util/package_properties.h » ('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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/installer/util/helper.h" 5 #include "chrome/installer/util/helper.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/win/registry.h" 11 #include "base/win/registry.h"
12 #include "chrome/installer/util/browser_distribution.h" 12 #include "chrome/installer/util/browser_distribution.h"
13 #include "chrome/installer/util/install_util.h" 13 #include "chrome/installer/util/install_util.h"
14 #include "chrome/installer/util/master_preferences.h" 14 #include "chrome/installer/util/master_preferences.h"
15 #include "chrome/installer/util/package_properties.h"
15 16
16 using base::win::RegKey; 17 using base::win::RegKey;
17 18
18 namespace { 19 namespace {
19 20
20 FilePath GetChromeInstallBasePath(bool system, 21 FilePath GetChromeInstallBasePath(bool system,
21 BrowserDistribution* distribution, 22 BrowserDistribution* distribution,
22 const wchar_t* sub_path) { 23 const wchar_t* sub_path) {
23 FilePath install_path; 24 FilePath install_path;
24 if (system) { 25 if (system) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 120
120 // Return Chrome's installation folder. 121 // Return Chrome's installation folder.
121 VLOG(1) << "Chrome Frame will be installed as 'multi'"; 122 VLOG(1) << "Chrome Frame will be installed as 'multi'";
122 const MasterPreferences& prefs = MasterPreferences::ForCurrentProcess(); 123 const MasterPreferences& prefs = MasterPreferences::ForCurrentProcess();
123 BrowserDistribution* chrome = 124 BrowserDistribution* chrome =
124 BrowserDistribution::GetSpecificDistribution( 125 BrowserDistribution::GetSpecificDistribution(
125 BrowserDistribution::CHROME_BROWSER, prefs); 126 BrowserDistribution::CHROME_BROWSER, prefs);
126 return GetChromeInstallPath(system_install, chrome); 127 return GetChromeInstallPath(system_install, chrome);
127 } 128 }
128 129
130 std::wstring GetAppGuidForUpdates(bool system_install) {
131 BrowserDistribution* dist = BrowserDistribution::GetDistribution();
132
133 // If we're part of a multi-install, we need to poll using the multi-installer
134 // package's app guid rather than the browser's or Chrome Frame's app guid.
135 return IsInstalledAsMulti(system_install, dist) ?
136 ActivePackageProperties().GetAppGuid() :
137 dist->GetAppGuid();
138 }
139
129 } // namespace installer. 140 } // namespace installer.
OLDNEW
« no previous file with comments | « chrome/installer/util/helper.h ('k') | chrome/installer/util/package_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698