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

Unified Diff: ios/web/public/web_client.mm

Issue 986743003: Upstream (most of) ios/web/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix namespace comment Created 5 years, 9 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/web/public/web_client.cc ('k') | ios/web/public/web_state/crw_native_content.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_client.mm
diff --git a/ios/web/public/web_client.cc b/ios/web/public/web_client.mm
similarity index 87%
rename from ios/web/public/web_client.cc
rename to ios/web/public/web_client.mm
index 0f2cf0c686380d160f957c93bf29527e4f2fe680..ef46fdf1c87b1f539800c7e74544a52d0db4af4f 100644
--- a/ios/web/public/web_client.cc
+++ b/ios/web/public/web_client.mm
@@ -4,6 +4,8 @@
#include "ios/web/public/web_client.h"
+#include <Foundation/Foundation.h>
+
namespace web {
static WebClient* g_client;
@@ -34,6 +36,10 @@ std::string WebClient::GetAcceptLangs(BrowserState* state) const {
return std::string();
}
+std::string WebClient::GetApplicationLocale() const {
+ return "en-US";
+}
+
bool WebClient::IsAppSpecificURL(const GURL& url) const {
return false;
}
@@ -65,4 +71,8 @@ base::RefCountedStaticMemory* WebClient::GetDataResourceBytes(
return nullptr;
}
+NSString* WebClient::GetEarlyPageScript(WebViewType web_view_type) const {
+ return @"";
+}
+
} // namespace web
« no previous file with comments | « ios/web/public/web_client.cc ('k') | ios/web/public/web_state/crw_native_content.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698