diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-11 19:16:00 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-11 19:16:00 +0000 |
commit | 1d0d8f176df9f7a9043a825541d016189754a27e (patch) | |
tree | 110aaf6eae4f9ee63321050d2eba4f60b3c0c3e8 /chrome | |
parent | 2e6b0da009aabf92bfa1acbcdf589bad927f8f1d (diff) | |
download | chromium_src-1d0d8f176df9f7a9043a825541d016189754a27e.zip chromium_src-1d0d8f176df9f7a9043a825541d016189754a27e.tar.gz chromium_src-1d0d8f176df9f7a9043a825541d016189754a27e.tar.bz2 |
Clean up about box for unofficial builds.
Currently unofficial builds (Chromium) display there an error message
that update server is unavailable. This is obvious (there is no update
server for trunk builds), but looks bad. This patch removes
the message for unofficial builds.
Review URL: http://codereview.chromium.org/13352
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6806 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/about_chrome_view.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/views/about_chrome_view.cc b/chrome/browser/views/about_chrome_view.cc index 09a4ccf..0df1ef3 100644 --- a/chrome/browser/views/about_chrome_view.cc +++ b/chrome/browser/views/about_chrome_view.cc @@ -716,6 +716,12 @@ void AboutChromeView::OnReportResults(GoogleUpdateUpgradeResult result, void AboutChromeView::UpdateStatus(GoogleUpdateUpgradeResult result, GoogleUpdateErrorCode error_code) { +#if !defined(GOOGLE_CHROME_BUILD) + // For Chromium builds it would show an error message. + // But it looks weird because in fact there is no error, + // just the update server is not available for non-official builds. + return; +#endif bool show_success_indicator = false; bool show_update_available_indicator = false; bool show_timeout_indicator = false; |