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

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: Address various comments 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
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 2a5529bc5f8dd067bc843f649c472665d58b8d77..713db4550b17f03d3c7382aa67b0538e610da031 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
@@ -4,6 +4,7 @@
#import "ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.h"
+#include "ios/chrome/browser/chrome_url_constants.h"
#import "ios/clean/chrome/browser/ui/web_contents/web_contents_consumer.h"
#import "ios/web/public/navigation_manager.h"
#include "ios/web/public/web_state/web_state.h"
@@ -28,8 +29,7 @@
self.webState->SetWebUsageEnabled(true);
if (!self.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;
self.webState->GetNavigationManager()->LoadURLWithParams(params);
}

Powered by Google App Engine
This is Rietveld 408576698