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

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

Issue 27218: Enable new tab page for Mac and Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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
Index: chrome/browser/tab_contents/tab_contents_factory.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents_factory.cc (revision 10469)
+++ chrome/browser/tab_contents/tab_contents_factory.cc (working copy)
@@ -60,12 +60,12 @@
case TAB_CONTENTS_NATIVE_UI:
contents = new NativeUIContents(profile);
break;
+#endif // defined(OS_WIN)
case TAB_CONTENTS_DEBUGGER:
case TAB_CONTENTS_NEW_TAB_UI:
case TAB_CONTENTS_DOM_UI:
contents = new DOMUIContents(profile, instance, NULL);
break;
-#endif // defined(OS_WIN)
default:
if (g_extra_types) {
TabContentsFactoryMap::const_iterator it = g_extra_types->find(type);
@@ -114,13 +114,14 @@
if (url->SchemeIs(DOMUIContents::GetScheme().c_str()))
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;
}
+ if (url->SchemeIs(DOMUIContents::GetScheme().c_str()))
+ return TAB_CONTENTS_DOM_UI;
NOTIMPLEMENTED();
#endif

Powered by Google App Engine
This is Rietveld 408576698