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

Unified Diff: chrome/browser/google/google_update.cc

Issue 10537039: Upgrade process: Add an error message for when CoCreateInstance fails. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google/google_update.cc
===================================================================
--- chrome/browser/google/google_update.cc (revision 140271)
+++ chrome/browser/google/google_update.cc (working copy)
@@ -270,7 +270,8 @@
if (hr != S_OK) {
// Most of the error messages come straight from Google Update. This one is
// deemed worthy enough to also warrant its own error.
- string16 error_code = base::StringPrintf(L"0x%x", hr);
+ string16 error_code = base::StringPrintf(
+ L"%d: 0x%x", GOOGLE_UPDATE_JOB_SERVER_CREATION_FAILED, hr);
ReportFailure(
hr, GOOGLE_UPDATE_JOB_SERVER_CREATION_FAILED,
l10n_util::GetStringFUTF16(IDS_ABOUT_BOX_ERROR_COCREATE_FAILED,
@@ -307,8 +308,15 @@
}
if (hr != S_OK) {
+ string16 error_code = base::StringPrintf(
+ L"%d: 0x%x", GOOGLE_UPDATE_ONDEMAND_CLASS_NOT_FOUND, hr);
S. Ganesh 2012/06/07 21:23:02 Since the value is repeated and needs to be in syn
+ if (system_level)
+ error_code += L" -- system level";
ReportFailure(hr, GOOGLE_UPDATE_ONDEMAND_CLASS_NOT_FOUND,
- string16(), main_loop);
+ l10n_util::GetStringFUTF16(
+ IDS_ABOUT_BOX_ERROR_COCREATE_FAILED,
+ error_code),
+ main_loop);
return;
}
@@ -321,8 +329,13 @@
hr = on_demand->Update(app_guid.c_str(), job_observer);
if (hr != S_OK) {
+ string16 error_code = base::StringPrintf(
+ L"%d: 0x%x", GOOGLE_UPDATE_ONDEMAND_CLASS_REPORTED_ERROR, hr);
ReportFailure(hr, GOOGLE_UPDATE_ONDEMAND_CLASS_REPORTED_ERROR,
- string16(), main_loop);
+ l10n_util::GetStringFUTF16(
+ IDS_ABOUT_BOX_ERROR_COCREATE_FAILED,
S. Ganesh 2012/06/07 21:23:02 Technically this is not a CoCreate failure. I pres
+ error_code),
+ main_loop);
return;
}
@@ -334,9 +347,15 @@
GoogleUpdateUpgradeResult results;
hr = job_observer->GetResult(&results);
+
if (hr != S_OK) {
+ string16 error_code = base::StringPrintf(
+ L"%d: 0x%x", GOOGLE_UPDATE_GET_RESULT_CALL_FAILED, hr);
ReportFailure(hr, GOOGLE_UPDATE_GET_RESULT_CALL_FAILED,
- string16(), main_loop);
+ l10n_util::GetStringFUTF16(
+ IDS_ABOUT_BOX_ERROR_COCREATE_FAILED,
S. Ganesh 2012/06/07 21:23:02 Technically this is not a CoCreate failure. I pres
+ error_code),
+ main_loop);
return;
}
@@ -349,8 +368,13 @@
hr = job_observer->GetVersionInfo(&version_available_);
if (hr != S_OK) {
+ string16 error_code = base::StringPrintf(
+ L"%d: 0x%x", GOOGLE_UPDATE_GET_VERSION_INFO_FAILED, hr);
ReportFailure(hr, GOOGLE_UPDATE_GET_VERSION_INFO_FAILED,
- string16(), main_loop);
+ l10n_util::GetStringFUTF16(
+ IDS_ABOUT_BOX_ERROR_COCREATE_FAILED,
S. Ganesh 2012/06/07 21:23:02 Technically this is not a CoCreate failure. I pres
Finnur 2012/06/08 13:52:36 The variable name is a bit misleading but the erro
+ error_code),
+ main_loop);
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698