summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/app/generated_resources.grd6
-rw-r--r--chrome/browser/views/tabs/base_tab.cc27
2 files changed, 0 insertions, 33 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index c2cfe6e..b9f13f7 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -4672,12 +4672,6 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_UPGRADE_ERROR" desc="Status label: Error occurred during upgrade">
Update server not available (error: <ph name="ERROR_NUMBER">$1<ex>1</ex></ph>)
</message>
- <message name="IDS_RESOURCE_ERROR" desc="Error loading resource">
- An error was encountered while loading a program resource. Try reinstalling.
- </message>
- <message name="IDS_RESOURCE_ERROR_CAPTION" desc="Error loading resource caption">
- Resource Error
- </message>
<!-- Print -->
<message name="IDS_DEFAULT_PRINT_DOCUMENT_TITLE" desc="Default title for a print document">
diff --git a/chrome/browser/views/tabs/base_tab.cc b/chrome/browser/views/tabs/base_tab.cc
index fb8e525..0645022 100644
--- a/chrome/browser/views/tabs/base_tab.cc
+++ b/chrome/browser/views/tabs/base_tab.cc
@@ -508,27 +508,6 @@ void BaseTab::InitResources() {
loading_animation_frame_count =
loading_animation_frames->width() / loading_animation_frames->height();
- // We get a DIV0 further down when the throbber is replaced by an image which
- // is taller than wide. In this case we cannot deduce an animation sequence
- // from it since we assume that each animation frame has the width of the
- // image's height.
- if (loading_animation_frame_count == 0) {
-#ifdef WIN32
- // TODO(idanan): Remove this when we have a way to handle theme errors.
- // See: http://code.google.com/p/chromium/issues/detail?id=12531 For now,
- // this is Windows-specific because some users have downloaded a DLL from
- // outside of Google to override the theme.
- std::wstring text = l10n_util::GetString(IDS_RESOURCE_ERROR);
- std::wstring caption = l10n_util::GetString(IDS_RESOURCE_ERROR_CAPTION);
- UINT flags = MB_OK | MB_ICONWARNING | MB_TOPMOST;
- win_util::MessageBox(NULL, text, caption, flags);
-#endif
- CHECK(loading_animation_frame_count) <<
- "Invalid throbber size. Width = " <<
- loading_animation_frames->width() << ", height = " <<
- loading_animation_frames->height();
- }
-
waiting_animation_frames = rb.GetBitmapNamed(IDR_THROBBER_WAITING);
DCHECK(waiting_animation_frames);
DCHECK(waiting_animation_frames->width() %
@@ -538,12 +517,6 @@ void BaseTab::InitResources() {
waiting_to_loading_frame_count_ratio =
waiting_animation_frame_count / loading_animation_frame_count;
- // TODO(beng): eventually remove this when we have a proper themeing system.
- // themes not supporting IDR_THROBBER_WAITING are causing this
- // value to be 0 which causes DIV0 crashes. The value of 5
- // matches the current bitmaps in our source.
- if (waiting_to_loading_frame_count_ratio == 0)
- waiting_to_loading_frame_count_ratio = 5;
font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont));
font_height_ = font_->height();