hasufell-repository/packages/net-www/inox/files/inox/restore-classic-ntp.patch

45 lines
1.4 KiB
Diff

--- ./chrome/browser/search/search.cc
+++ ./chrome/browser/search/search.cc.new
@@ -287,17 +287,7 @@
template_url->new_tab_url_ref(), UIThreadSearchTermsData(profile),
false, false);
NewTabURLState state = IsValidNewTabURL(profile, search_provider_url);
- switch (state) {
- case NEW_TAB_URL_VALID:
- // We can use the search provider's page.
- return NewTabURLDetails(search_provider_url, state);
- case NEW_TAB_URL_INCOGNITO:
- // Incognito has its own New Tab.
- return NewTabURLDetails(GURL(), state);
- default:
- // Use the local New Tab otherwise.
- return NewTabURLDetails(local_url, state);
- }
+ return NewTabURLDetails(local_url, state);
}
GURL url;
--- ./chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.cc
+++ ./chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.cc.new
@@ -90,14 +90,9 @@
SigninManagerBase* signin = SigninManagerFactory::GetForProfile(
Profile::FromWebUI(web_ui()));
- // Hide the sync status section if sync is managed or disabled entirely.
- if (!sync_service_ ||
- sync_service_->IsManaged() ||
- !signin ||
- !signin->IsSigninAllowed()) {
- HideSyncStatusSection();
- return;
- }
+ // Hide the sync status section
+ HideSyncStatusSection();
+ return;
// Don't show sync status if setup is not complete.
if (!sync_service_->HasSyncSetupCompleted()) {