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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 9564046: Revert r124164 "Rewrite bookmark/history URLs for Guest mode in ChromeOS to New Tab URL" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 63ac405935d820c96d3d77da56410fc855daa862..f360e585aeb99858e994ca0b341ad1d26b620718 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -97,7 +97,6 @@
#include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h"
#elif defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
-#include "chrome/browser/chromeos/login/user_manager.h"
#elif defined(OS_LINUX) || defined(OS_OPENBSD)
#include "chrome/browser/chrome_browser_main_linux.h"
#elif defined(OS_POSIX)
@@ -156,20 +155,6 @@ bool HandleWebUI(GURL* url, content::BrowserContext* browser_context) {
browser_context, *url))
return false;
-#if defined(OS_CHROMEOS)
- // Special case : in ChromeOS in Guest mode bookmarks and history are
- // disabled for security reasons. New tab page explains the reasons, so
- // we redirect user to new tab page.
- if (chromeos::UserManager::Get()->IsLoggedInAsGuest()) {
- if (url->SchemeIs(chrome::kChromeUIScheme) &&
- (url->DomainIs(chrome::kChromeUIBookmarksHost) ||
- url->DomainIs(chrome::kChromeUIHistoryHost))) {
- // Rewrite with new tab URL
- *url = GURL(chrome::kChromeUINewTabURL);
- }
- }
-#endif
-
// Special case the new tab page. In older versions of Chrome, the new tab
// page was hosted at chrome-internal:<blah>. This might be in people's saved
// sessions or bookmarks, so we say any URL with that scheme triggers the new
« no previous file with comments | « no previous file | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698