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

Unified Diff: ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm

Issue 2606873002: Move the offline URL trimming to GetFormattedURL. (Closed)
Patch Set: fix DEPS Created 4 years 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/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm
diff --git a/ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm b/ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm
index b97831fa2fc47eccc3020724caa0b7ad94cb3e55..651180354a264b65dd6470eb36707a836d6c51db 100644
--- a/ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm
+++ b/ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm
@@ -20,7 +20,7 @@ TestToolbarModelIOS::TestToolbarModelIOS()
TestToolbarModelIOS::~TestToolbarModelIOS() {}
-ToolbarModel* TestToolbarModelIOS::GetToolbarModel() {
+TestToolbarModel* TestToolbarModelIOS::GetToolbarModel() {
return test_toolbar_model_.get();
}
@@ -55,3 +55,32 @@ bool TestToolbarModelIOS::IsCurrentTabBookmarkedByUser() {
bool TestToolbarModelIOS::ShouldDisplayHintText() {
return false;
}
+
+base::string16 TestToolbarModelIOS::GetFormattedURL(size_t* prefix_end) const {
+ return test_toolbar_model_->GetFormattedURL(prefix_end);
+}
+
+GURL TestToolbarModelIOS::GetURL() const {
+ return test_toolbar_model_->GetURL();
+}
+
+security_state::SecurityLevel TestToolbarModelIOS::GetSecurityLevel(
+ bool ignore_editing) const {
+ return test_toolbar_model_->GetSecurityLevel(ignore_editing);
+}
+
+gfx::VectorIconId TestToolbarModelIOS::GetVectorIcon() const {
+ return test_toolbar_model_->GetVectorIcon();
+}
+
+base::string16 TestToolbarModelIOS::GetSecureVerboseText() const {
+ return test_toolbar_model_->GetSecureVerboseText();
+}
+
+base::string16 TestToolbarModelIOS::GetEVCertName() const {
+ return test_toolbar_model_->GetEVCertName();
+}
+
+bool TestToolbarModelIOS::ShouldDisplayURL() const {
+ return test_toolbar_model_->ShouldDisplayURL();
+}
« no previous file with comments | « ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.h ('k') | ios/chrome/browser/ui/toolbar/toolbar_model_delegate_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698