|
@@ -1,29 +1,20 @@
|
|
|
-commit 5fd5caead1e313462bc84c22aab44404af1a918d
|
|
|
+commit a53d9cf12fb835938c2d2ad641633126a07bf636
|
|
|
Author: csagan5 <32685696+csagan5@users.noreply.github.com>
|
|
|
-Date: Wed Oct 11 22:54:53 2017 +0200
|
|
|
+Date: Sun Nov 26 11:40:05 2017 +0100
|
|
|
|
|
|
Restore classic new tab page
|
|
|
|
|
|
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
|
|
|
-index dae4dd5..60411ce 100644
|
|
|
+index b756cb0..5785c581 100644
|
|
|
--- a/chrome/browser/search/search.cc
|
|
|
+++ b/chrome/browser/search/search.cc
|
|
|
-@@ -170,17 +170,7 @@ struct NewTabURLDetails {
|
|
|
- return NewTabURLDetails(local_url, NEW_TAB_URL_VALID);
|
|
|
+@@ -171,9 +171,6 @@ struct NewTabURLDetails {
|
|
|
|
|
|
NewTabURLState state = IsValidNewTabURL(profile, search_provider_url);
|
|
|
-- switch (state) {
|
|
|
+ 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;
|
|
|
+ case NEW_TAB_URL_INCOGNITO:
|
|
|
+ // Incognito has its own New Tab.
|
|
|
+ return NewTabURLDetails(GURL(), state);
|