Commit b69e31e4 authored by grt's avatar grt Committed by Commit bot

Minor comment and style updates for on-demand update check code.

BUG=none
R=ganesh@chromium.org,pkasting@chromium.org

Review URL: https://codereview.chromium.org/1141073002

Cr-Commit-Position: refs/heads/master@{#329941}
parent d33801eb
......@@ -139,12 +139,12 @@ HRESULT CreateGoogleUpdate3WebClass(
return google_update->CreateInstance(CLSID_GoogleUpdate3WebUserClass);
// For a system-level install, update checks can be done by a normal user with
// the ServiceClass.
// the MachineClass.
if (!install_update_if_possible)
return google_update->CreateInstance(CLSID_GoogleUpdate3WebMachineClass);
// For a system-level install, an update requires Admin privileges for writing
// to %ProgramFiles%. Elevate while instantiating the ServiceClass.
// to %ProgramFiles%. Elevate while instantiating the MachineClass.
return CoCreateInstanceAsAdmin(CLSID_GoogleUpdate3WebMachineClass,
IID_IGoogleUpdate3Web, elevation_window,
google_update->ReceiveVoid());
......
......@@ -20,7 +20,6 @@ void VersionUpdaterBasic::RelaunchBrowser() const {
chrome::AttemptRestart();
}
VersionUpdater* VersionUpdater::Create(
content::WebContents* /* web_contents */) {
VersionUpdater* VersionUpdater::Create(content::WebContents* web_contents) {
return new VersionUpdaterBasic;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment