Index: ios/web/public/web_client.h |
diff --git a/ios/web/public/web_client.h b/ios/web/public/web_client.h |
index 354d81427b0ce0e5c6215c63516983a94b4ba224..d949f55a6bccf0c38753b49b35e16f6a6517aafe 100644 |
--- a/ios/web/public/web_client.h |
+++ b/ios/web/public/web_client.h |
@@ -12,6 +12,7 @@ |
#include "base/strings/string16.h" |
#include "base/strings/string_piece.h" |
#include "base/task_scheduler/task_scheduler.h" |
+#include "ios/web/public/user_agent.h" |
#include "ui/base/layout.h" |
#include "url/url_util.h" |
@@ -79,9 +80,8 @@ class WebClient { |
// form "productname/version". Used as part of the user agent string. |
virtual std::string GetProduct() const; |
- // Returns the user agent. |desktop_user_agent| is true if desktop user agent |
- // is requested. |
- virtual std::string GetUserAgent(bool desktop_user_agent) const; |
+ // Returns the user agent string for the specified type. |
+ virtual std::string GetUserAgent(UserAgentType type) const; |
// Returns a string resource given its id. |
virtual base::string16 GetLocalizedString(int message_id) const; |