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

Unified Diff: ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm

Issue 2785893003: [ios clean] Add placeholder for NTP bookmarks, chrome home and open tabs. (Closed)
Patch Set: Comment nit Created 3 years, 8 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 | « ios/clean/chrome/browser/ui/web_contents/BUILD.gn ('k') | ios/clean/chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm
diff --git a/ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm b/ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm
index 9c2bc7fbd432a92da3a0dc1523b891eb67b19e6c..a4596fbc41ccd8fe881bf53cb8bc24d0ad62a6c3 100644
--- a/ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm
+++ b/ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm
@@ -5,6 +5,7 @@
#import "ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.h"
#include "base/memory/ptr_util.h"
+#include "ios/chrome/browser/chrome_url_constants.h"
#import "ios/clean/chrome/browser/ui/web_contents/web_contents_consumer.h"
#import "ios/shared/chrome/browser/tabs/web_state_list.h"
#import "ios/shared/chrome/browser/tabs/web_state_list_observer_bridge.h"
@@ -102,8 +103,7 @@
// PLACEHOLDER: This navigates the page since the omnibox is not yet hooked up.
- (void)navigateToDefaultPage:(web::WebState*)webState {
if (!webState->GetNavigationManager()->GetItemCount()) {
- web::NavigationManager::WebLoadParams params(
- GURL("https://dev.chromium.org/"));
+ web::NavigationManager::WebLoadParams params((GURL(kChromeUINewTabURL)));
params.transition_type = ui::PAGE_TRANSITION_TYPED;
webState->GetNavigationManager()->LoadURLWithParams(params);
}
« no previous file with comments | « ios/clean/chrome/browser/ui/web_contents/BUILD.gn ('k') | ios/clean/chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698