Index: chrome/browser/dom_ui/options/options_ui.cc |
diff --git a/chrome/browser/dom_ui/options/options_ui.cc b/chrome/browser/dom_ui/options/options_ui.cc |
index 867b4fb2b69ccdf02aecf194a079aa5d22fe52ef..40d87d3e2fbfa8ec0547aeef03709d61864c38b6 100644 |
--- a/chrome/browser/dom_ui/options/options_ui.cc |
+++ b/chrome/browser/dom_ui/options/options_ui.cc |
@@ -17,6 +17,7 @@ |
#include "base/thread.h" |
#include "base/time.h" |
#include "base/values.h" |
+#include "chrome/browser/browser_about_handler.h" |
#include "chrome/browser/browser_thread.h" |
#include "chrome/browser/dom_ui/dom_ui_theme_source.h" |
#include "chrome/browser/dom_ui/options/about_page_handler.h" |
@@ -46,13 +47,13 @@ |
#include "chrome/common/notification_type.h" |
#include "chrome/common/time_format.h" |
#include "chrome/common/url_constants.h" |
-#include "net/base/escape.h" |
- |
+#include "googleurl/src/gurl.h" |
#include "grit/browser_resources.h" |
#include "grit/chromium_strings.h" |
#include "grit/generated_resources.h" |
#include "grit/locale_settings.h" |
#include "grit/theme_resources.h" |
+#include "net/base/escape.h" |
#if defined(OS_CHROMEOS) |
#include "chrome/browser/chromeos/dom_ui/accounts_options_handler.h" |
@@ -202,7 +203,7 @@ OptionsUI::OptionsUI(TabContents* contents) : DOMUI(contents) { |
&ChromeURLDataManager::AddDataSource, |
make_scoped_refptr(html_source))); |
- // Set up chrome://theme/ source. |
+ // Set up the chrome://theme/ source. |
DOMUIThemeSource* theme = new DOMUIThemeSource(GetProfile()); |
BrowserThread::PostTask( |
BrowserThread::IO, FROM_HERE, |
@@ -210,6 +211,11 @@ OptionsUI::OptionsUI(TabContents* contents) : DOMUI(contents) { |
ChromeURLDataManager::GetInstance(), |
&ChromeURLDataManager::AddDataSource, |
make_scoped_refptr(theme))); |
+ |
+ // Initialize the chrome://about/ source in case the user clicks the credits |
+ // link. |
+ GURL about_credits_url(chrome::kAboutCreditsURL); |
+ WillHandleBrowserAboutURL(&about_credits_url, GetProfile()); |
Daniel Erat
2010/12/28 22:11:50
This is ugly, but it looks like it's the only path
arv (Not doing code reviews)
2010/12/28 22:28:08
Another slightly cleaner solution would be to extr
|
} |
OptionsUI::~OptionsUI() { |