Open chrome://hitograms after a video is ended in ChromeVidResChangeHWDecode test

ChromeVidResChnageHWDecode opens chrome://histograms to check
Media.GpuVideoDecoderInitializeStatus value while a test video is played.
Because of that, the video played tab becomes background.
Since Chrome pauses a video in background tab, the test is failed because it
detects a test video is unexpectedly stopped.
To fix this failure, the test opens chrome://histograms after a test video is ended.

BUG=chromium:768621
TEST=video_ChromeVidResChangeHWDecode on caroline

Change-Id: Id62970a91d1ff416820812c1d45ddd34c1762746
Reviewed-on: https://chromium-review.googlesource.com/734881
Commit-Ready: Hirokazu Honda <hiroh@chromium.org>
Tested-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Kuang-che Wu <kcwu@chromium.org>
diff --git a/client/site_tests/video_ChromeVidResChangeHWDecode/video_ChromeVidResChangeHWDecode.py b/client/site_tests/video_ChromeVidResChangeHWDecode/video_ChromeVidResChangeHWDecode.py
index 73347bd..f7ed1d1 100755
--- a/client/site_tests/video_ChromeVidResChangeHWDecode/video_ChromeVidResChangeHWDecode.py
+++ b/client/site_tests/video_ChromeVidResChangeHWDecode/video_ChromeVidResChangeHWDecode.py
@@ -42,11 +42,6 @@
                  event_timeout = 120)
             player.load_video()
             player.play()
-            # Waits for histogram updated for the test video.
-            histogram_verifier.verify(
-                    cr,
-                    constants.MEDIA_GVD_INIT_STATUS,
-                    constants.MEDIA_GVD_BUCKET)
 
             # Verify the video playback.
             for i in range(1, video_len/2):
@@ -60,3 +55,9 @@
                     timeout=video_len,
                     exception=error.TestError('Video did not end successfully'),
                     sleep_interval=1)
+
+            # Make sure decode is hardware accelerated.
+            histogram_verifier.verify(
+                    cr,
+                    constants.MEDIA_GVD_INIT_STATUS,
+                    constants.MEDIA_GVD_BUCKET)