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

Unified Diff: chrome/browser/tab_contents/tab_contents_factory.cc

Issue 27169: Linux: add splash screen (Closed)
Patch Set: ... Created 11 years, 10 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 | « chrome/browser/resources/linux-splash.html ('k') | chrome/browser/tab_contents/web_contents_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents_factory.cc
diff --git a/chrome/browser/tab_contents/tab_contents_factory.cc b/chrome/browser/tab_contents/tab_contents_factory.cc
index 045a01cd28c40af1429e6c8d5d0bd13967963240..a65d9dee73627fd73fc2d693f5aa73763cf15d03 100644
--- a/chrome/browser/tab_contents/tab_contents_factory.cc
+++ b/chrome/browser/tab_contents/tab_contents_factory.cc
@@ -48,6 +48,9 @@ TabContents* TabContents::CreateWithType(TabContentsType type,
case TAB_CONTENTS_WEB:
contents = new WebContents(profile, instance, NULL, MSG_ROUTING_NONE, NULL);
break;
+ case TAB_CONTENTS_ABOUT_UI:
+ contents = new BrowserAboutHandler(profile, instance, NULL);
+ break;
// TODO(port): remove this platform define, either by porting the tab contents
// types or removing them completely.
#if defined(OS_WIN)
@@ -57,9 +60,6 @@ TabContents* TabContents::CreateWithType(TabContentsType type,
case TAB_CONTENTS_NATIVE_UI:
contents = new NativeUIContents(profile);
break;
- case TAB_CONTENTS_ABOUT_UI:
- contents = new BrowserAboutHandler(profile, instance, NULL);
- break;
case TAB_CONTENTS_DEBUGGER:
case TAB_CONTENTS_NEW_TAB_UI:
case TAB_CONTENTS_DOM_UI:
@@ -116,6 +116,11 @@ TabContentsType TabContents::TypeForURL(GURL* url) {
return TAB_CONTENTS_DOM_UI;
#elif defined(OS_POSIX)
+ TabContentsType type(TAB_CONTENTS_UNKNOWN_TYPE);
+ if (BrowserURLHandler::HandleBrowserURL(url, &type) &&
+ type == TAB_CONTENTS_ABOUT_UI) {
+ return type;
+ }
NOTIMPLEMENTED();
#endif
« no previous file with comments | « chrome/browser/resources/linux-splash.html ('k') | chrome/browser/tab_contents/web_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698