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

Unified Diff: ios/chrome/browser/ui/webui/web_ui_egtest.mm

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: rebase + compile fix Created 3 years, 10 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/chrome/browser/ui/webui/version_ui.mm ('k') | ios/chrome/browser/web/chrome_web_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/webui/web_ui_egtest.mm
diff --git a/ios/chrome/browser/ui/webui/web_ui_egtest.mm b/ios/chrome/browser/ui/webui/web_ui_egtest.mm
index 614379c5a7d0ccd699a4ea2fec1981bdf9e01c41..948fca8d2cb8d40835b5846f647acfec56a4d3d0 100644
--- a/ios/chrome/browser/ui/webui/web_ui_egtest.mm
+++ b/ios/chrome/browser/ui/webui/web_ui_egtest.mm
@@ -91,8 +91,8 @@ - (void)testVersion {
assertWithMatcher:grey_notNil()];
// Verify that mobile User Agent string is present on the page.
- const bool isDesktopUA = false;
- const std::string userAgent = web::GetWebClient()->GetUserAgent(isDesktopUA);
+ const std::string userAgent =
+ web::GetWebClient()->GetUserAgent(web::UserAgentType::MOBILE);
[[EarlGrey selectElementWithMatcher:WebViewContainingText(userAgent)]
assertWithMatcher:grey_notNil()];
}
« no previous file with comments | « ios/chrome/browser/ui/webui/version_ui.mm ('k') | ios/chrome/browser/web/chrome_web_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698