summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_init.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-08 02:41:38 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-08 02:41:38 +0000
commit5d70b2eb21a13d12b9aa866570db70bfa9579fb7 (patch)
tree8b83946348f7eff985dc34f5270f8ccb99a11c93 /chrome/browser/browser_init.cc
parent4750321cf1b975c5f1c7ce7c67c11483fb1d3456 (diff)
downloadchromium_src-5d70b2eb21a13d12b9aa866570db70bfa9579fb7.zip
chromium_src-5d70b2eb21a13d12b9aa866570db70bfa9579fb7.tar.gz
chromium_src-5d70b2eb21a13d12b9aa866570db70bfa9579fb7.tar.bz2
Stuff needed for alert info bars.
TBR=evan Review URL: http://codereview.chromium.org/63111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13336 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r--chrome/browser/browser_init.cc20
1 files changed, 4 insertions, 16 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc
index 07e32d9..e8d10ca 100644
--- a/chrome/browser/browser_init.cc
+++ b/chrome/browser/browser_init.cc
@@ -36,17 +36,15 @@
#include "chrome/common/pref_service.h"
#include "chrome/common/resource_bundle.h"
#include "chrome/common/result_codes.h"
-#include "net/base/cookie_monster.h"
-#include "webkit/glue/webkit_glue.h"
-
-#if defined(OS_WIN)
-
-#include "base/win_util.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
#include "grit/theme_resources.h"
+#include "net/base/cookie_monster.h"
+#include "webkit/glue/webkit_glue.h"
+#if defined(OS_WIN)
+#include "base/win_util.h"
#endif
namespace {
@@ -67,12 +65,7 @@ class SessionCrashedInfoBarDelegate : public ConfirmInfoBarDelegate {
delete this;
}
virtual std::wstring GetMessageText() const {
-#if defined(OS_WIN)
return l10n_util::GetString(IDS_SESSION_CRASHED_VIEW_MESSAGE);
-#else
- // TODO(port): implement session crashed info bar.
- return L"Portme";
-#endif
}
virtual SkBitmap* GetIcon() const {
return ResourceBundle::GetSharedInstance().GetBitmapNamed(
@@ -80,12 +73,7 @@ class SessionCrashedInfoBarDelegate : public ConfirmInfoBarDelegate {
}
virtual int GetButtons() const { return BUTTON_OK; }
virtual std::wstring GetButtonLabel(InfoBarButton button) const {
-#if defined(OS_WIN)
return l10n_util::GetString(IDS_SESSION_CRASHED_VIEW_RESTORE_BUTTON);
-#else
- // TODO(port): implement session crashed info bar.
- return L"Portme";
-#endif
}
virtual bool Accept() {
// Restore the session.