Home | History | Annotate | Download | only in google

Lines Matching refs:hr

288   HRESULT hr =
290 if (hr != S_OK) {
291 return ReportFailure(hr, GOOGLE_UPDATE_JOB_SERVER_CREATION_FAILED,
302 hr = on_demand.CreateInstance(CLSID_OnDemandUserAppsClass);
308 hr = on_demand.CreateInstance(CLSID_OnDemandMachineAppsClass);
315 hr = CoCreateInstanceAsAdmin(CLSID_OnDemandMachineAppsClass,
322 if (hr != S_OK)
323 return ReportFailure(hr, GOOGLE_UPDATE_ONDEMAND_CLASS_NOT_FOUND, main_loop);
329 hr = on_demand->CheckForUpdate(app_guid.c_str(), job_observer);
331 hr = on_demand->Update(app_guid.c_str(), job_observer);
333 if (hr != S_OK)
334 return ReportFailure(hr, GOOGLE_UPDATE_ONDEMAND_CLASS_REPORTED_ERROR,
344 hr = job_observer->GetResult(&results);
345 if (hr != S_OK)
346 return ReportFailure(hr, GOOGLE_UPDATE_GET_RESULT_CALL_FAILED, main_loop);
349 return ReportFailure(hr, GOOGLE_UPDATE_ERROR_UPDATING, main_loop);
351 hr = job_observer->GetVersionInfo(&version_available_);
352 if (hr != S_OK)
353 return ReportFailure(hr, GOOGLE_UPDATE_GET_VERSION_INFO_FAILED, main_loop);
371 bool GoogleUpdate::ReportFailure(HRESULT hr, GoogleUpdateErrorCode error_code,
373 NOTREACHED() << "Communication with Google Update failed: " << hr