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

Side by Side Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 200063003: Remove enhanced bookmarks extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 return &NewWebUI<AppLauncherPageUI>; 329 return &NewWebUI<AppLauncherPageUI>;
330 } 330 }
331 // Bookmarks are part of NTP on Android. 331 // Bookmarks are part of NTP on Android.
332 if (url.host() == chrome::kChromeUIBookmarksHost) 332 if (url.host() == chrome::kChromeUIBookmarksHost)
333 return &NewWebUI<BookmarksUI>; 333 return &NewWebUI<BookmarksUI>;
334 if (url.SchemeIs(content::kChromeDevToolsScheme)) 334 if (url.SchemeIs(content::kChromeDevToolsScheme))
335 return &NewWebUI<DevToolsUI>; 335 return &NewWebUI<DevToolsUI>;
336 // Downloads list on Android uses the built-in download manager. 336 // Downloads list on Android uses the built-in download manager.
337 if (url.host() == chrome::kChromeUIDownloadsHost) 337 if (url.host() == chrome::kChromeUIDownloadsHost)
338 return &NewWebUI<DownloadsUI>; 338 return &NewWebUI<DownloadsUI>;
339 #if defined(ENABLE_ENHANCED_BOOKMARKS)
340 // Bookmarks are part of NTP on Android.
341 if (url.host() == chrome::kChromeUIEnhancedBookmarksHost)
342 return &NewWebUI<BookmarksUI>;
343 #endif
344 // Flash is not available on android. 339 // Flash is not available on android.
345 if (url.host() == chrome::kChromeUIFlashHost) 340 if (url.host() == chrome::kChromeUIFlashHost)
346 return &NewWebUI<FlashUI>; 341 return &NewWebUI<FlashUI>;
347 if (url.host() == chrome::kChromeUIGCMInternalsHost) 342 if (url.host() == chrome::kChromeUIGCMInternalsHost)
348 return &NewWebUI<GCMInternalsUI>; 343 return &NewWebUI<GCMInternalsUI>;
349 // Help is implemented with native UI elements on Android. 344 // Help is implemented with native UI elements on Android.
350 if (url.host() == chrome::kChromeUIHelpFrameHost) 345 if (url.host() == chrome::kChromeUIHelpFrameHost)
351 return &NewWebUI<HelpUI>; 346 return &NewWebUI<HelpUI>;
352 // Identity API is not available on Android. 347 // Identity API is not available on Android.
353 if (url.host() == chrome::kChromeUIIdentityInternalsHost) 348 if (url.host() == chrome::kChromeUIIdentityInternalsHost)
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 #endif 664 #endif
670 665
671 // Android doesn't use the plugins pages. 666 // Android doesn't use the plugins pages.
672 if (page_url.host() == chrome::kChromeUIPluginsHost) 667 if (page_url.host() == chrome::kChromeUIPluginsHost)
673 return PluginsUI::GetFaviconResourceBytes(scale_factor); 668 return PluginsUI::GetFaviconResourceBytes(scale_factor);
674 669
675 #endif 670 #endif
676 671
677 return NULL; 672 return NULL;
678 } 673 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/common/extensions/manifest_url_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698