Commit 2fc04fa2 authored by Tobias Sargeant's avatar Tobias Sargeant Committed by Commit Bot

[wv] Cleanup incorrect uses of it's and its.

M-x enable-pedant-mode

Change-Id: I97278cfd22475bd4a444fb279225c7ebbaa46bae
Reviewed-on: https://chromium-review.googlesource.com/c/1455903Reviewed-by: default avatarNate Fischer <ntfschr@chromium.org>
Commit-Queue: Tobias Sargeant <tobiasjs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629615}
parent e5b9c00f
...@@ -18,7 +18,7 @@ namespace android_webview { ...@@ -18,7 +18,7 @@ namespace android_webview {
class AwPermissionRequestDelegate; class AwPermissionRequestDelegate;
// This class wraps a permission request, it works with PermissionRequestHandler // This class wraps a permission request, it works with PermissionRequestHandler
// and its' Java peer to represent the request to AwContentsClient. // and its Java peer to represent the request to AwContentsClient.
// The specific permission request should implement the // The specific permission request should implement the
// AwPermissionRequestDelegate interface, See MediaPermissionRequest. // AwPermissionRequestDelegate interface, See MediaPermissionRequest.
// This object is owned by the java peer. // This object is owned by the java peer.
......
...@@ -119,7 +119,7 @@ class WebViewContentsClientAdapter extends SharedWebViewContentsClientAdapter { ...@@ -119,7 +119,7 @@ class WebViewContentsClientAdapter extends SharedWebViewContentsClientAdapter {
WebView newWebView = t.getWebView(); WebView newWebView = t.getWebView();
if (newWebView == mWebView) { if (newWebView == mWebView) {
throw new IllegalArgumentException( throw new IllegalArgumentException(
"Parent WebView cannot host it's own popup window. Please " "Parent WebView cannot host its own popup window. Please "
+ "use WebSettings.setSupportMultipleWindows(false)"); + "use WebSettings.setSupportMultipleWindows(false)");
} }
......
...@@ -868,7 +868,7 @@ public class AwContents implements SmartClipProvider { ...@@ -868,7 +868,7 @@ public class AwContents implements SmartClipProvider {
mBrowserContext = browserContext; mBrowserContext = browserContext;
// setWillNotDraw(false) is required since WebView draws it's own contents using it's // setWillNotDraw(false) is required since WebView draws its own contents using its
// container view. If this is ever not the case we should remove this, as it removes // container view. If this is ever not the case we should remove this, as it removes
// Android's gatherTransparentRegion optimization for the view. // Android's gatherTransparentRegion optimization for the view.
mContainerView = containerView; mContainerView = containerView;
...@@ -1057,7 +1057,7 @@ public class AwContents implements SmartClipProvider { ...@@ -1057,7 +1057,7 @@ public class AwContents implements SmartClipProvider {
} }
private void setContainerView(ViewGroup newContainerView) { private void setContainerView(ViewGroup newContainerView) {
// setWillNotDraw(false) is required since WebView draws it's own contents using it's // setWillNotDraw(false) is required since WebView draws its own contents using its
// container view. If this is ever not the case we should remove this, as it removes // container view. If this is ever not the case we should remove this, as it removes
// Android's gatherTransparentRegion optimization for the view. // Android's gatherTransparentRegion optimization for the view.
mContainerView = newContainerView; mContainerView = newContainerView;
......
...@@ -263,7 +263,7 @@ public class AwZoomTest { ...@@ -263,7 +263,7 @@ public class AwZoomTest {
// Now force an orientation change, and try to display the zoom picker // Now force an orientation change, and try to display the zoom picker
// again. Make sure that we don't crash when the ZoomPicker registers // again. Make sure that we don't crash when the ZoomPicker registers
// it's receiver. // its receiver.
Activity activity = mActivityTestRule.getActivity(); Activity activity = mActivityTestRule.getActivity();
int orientation = activity.getRequestedOrientation(); int orientation = activity.getRequestedOrientation();
...@@ -273,7 +273,7 @@ public class AwZoomTest { ...@@ -273,7 +273,7 @@ public class AwZoomTest {
invokeZoomPickerOnUiThread(); invokeZoomPickerOnUiThread();
// We may crash shortly (as the zoom picker has a short delay in it before // We may crash shortly (as the zoom picker has a short delay in it before
// it tries to register it's BroadcastReceiver), so sleep to verify we don't. // it tries to register its BroadcastReceiver), so sleep to verify we don't.
// The delay is encoded in ZoomButtonsController#ZOOM_CONTROLS_TIMEOUT, // The delay is encoded in ZoomButtonsController#ZOOM_CONTROLS_TIMEOUT,
// if that changes we may need to update this test. // if that changes we may need to update this test.
Thread.sleep(ViewConfiguration.getZoomControlsTimeout()); Thread.sleep(ViewConfiguration.getZoomControlsTimeout());
......
...@@ -136,7 +136,7 @@ public class GetTitleTest { ...@@ -136,7 +136,7 @@ public class GetTitleTest {
/** /**
* When the loaded file has empty title, the page title is set to the url it loads from. * When the loaded file has empty title, the page title is set to the url it loads from.
* It also contains: hostName, portNumber information if its part of the loaded URL. * It also contains: hostName, portNumber information if it's part of the loaded URL.
* @throws Throwable * @throws Throwable
*/ */
@Test @Test
...@@ -149,7 +149,7 @@ public class GetTitleTest { ...@@ -149,7 +149,7 @@ public class GetTitleTest {
/** /**
* When the loaded file has no title, the page title is set to the urk it loads from. * When the loaded file has no title, the page title is set to the urk it loads from.
* It also contains: hostName, portNumber information if its part of the loaded URL. * It also contains: hostName, portNumber information if it's part of the loaded URL.
* @throws Throwable * @throws Throwable
*/ */
@Test @Test
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# which is also the default if no directory is provided). # which is also the default if no directory is provided).
# This script will produce a shadow test_rebaseline/ directory # This script will produce a shadow test_rebaseline/ directory
# with the new rebased expectation files. # with the new rebased expectation files.
# It is recommended to run this script from it's local # It is recommended to run this script from its local
# directory in order to have the rebaseline files placed # directory in order to have the rebaseline files placed
# at the same level as the original test files. # at the same level as the original test files.
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment