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

Issue 26277010: Create content::WebContentsDestroyedWatcher, use it in many tests. (Closed)

Created:
7 years, 2 months ago by Avi (use Gerrit)
Modified:
7 years, 2 months ago
Reviewers:
Lei Zhang, jam, Scott Byer
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, joi+watch-content_chromium.org, marja+watch_chromium.org, darin-cc_chromium.org, kalyank
Visibility:
Public.

Description

Create content::WebContentsDestroyedWatcher, use it in many tests. BUG=170921 TEST=all the tests still work Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229059

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : more fixed #

Patch Set 4 : jeremy what were you thinking‽ #

Patch Set 5 : rebase #

Patch Set 6 : fix #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -354 lines) Patch
M chrome/browser/apps/app_browsertest_util.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/apps/web_view_browsertest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/browser_keyevents_browsertest.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/notifications/notification_browsertest.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/printing/print_dialog_cloud_interative_uitest.cc View 1 2 1 chunk +0 lines, -284 lines 2 comments Download
M chrome/browser/sessions/tab_restore_browsertest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 2 3 4 5 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/unload_browsertest.cc View 1 2 3 3 chunks +9 lines, -13 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_manager_browsertest.cc View 1 2 chunks +2 lines, -26 lines 0 comments Download
M content/public/test/browser_test_utils.h View 1 chunk +18 lines, -0 lines 5 comments Download
M content/public/test/browser_test_utils.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Avi (use Gerrit)
jam@chromium.org: content thestig@chromium.org: chrome This is a high-level enough change that I don't think I ...
7 years, 2 months ago (2013-10-15 14:44:18 UTC) #1
jam
https://codereview.chromium.org/26277010/diff/39001/chrome/browser/printing/print_dialog_cloud_interative_uitest.cc File chrome/browser/printing/print_dialog_cloud_interative_uitest.cc (left): https://codereview.chromium.org/26277010/diff/39001/chrome/browser/printing/print_dialog_cloud_interative_uitest.cc#oldcode1 chrome/browser/printing/print_dialog_cloud_interative_uitest.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 2 months ago (2013-10-15 16:50:52 UTC) #2
Avi (use Gerrit)
https://codereview.chromium.org/26277010/diff/39001/chrome/browser/printing/print_dialog_cloud_interative_uitest.cc File chrome/browser/printing/print_dialog_cloud_interative_uitest.cc (left): https://codereview.chromium.org/26277010/diff/39001/chrome/browser/printing/print_dialog_cloud_interative_uitest.cc#oldcode1 chrome/browser/printing/print_dialog_cloud_interative_uitest.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 2 months ago (2013-10-15 16:57:24 UTC) #3
Avi (use Gerrit)
Scott re the printing test.
7 years, 2 months ago (2013-10-15 16:58:04 UTC) #4
Scott Byer
On 2013/10/15 16:58:04, Avi wrote: > Scott re the printing test. Yeah, there's one test ...
7 years, 2 months ago (2013-10-15 17:37:18 UTC) #5
Avi (use Gerrit)
https://codereview.chromium.org/26277010/diff/39001/content/public/test/browser_test_utils.h File content/public/test/browser_test_utils.h (right): https://codereview.chromium.org/26277010/diff/39001/content/public/test/browser_test_utils.h#newcode227 content/public/test/browser_test_utils.h:227: class WebContentsDestroyedWatcher : public WebContentsObserver { Actually, no, that's ...
7 years, 2 months ago (2013-10-15 20:16:31 UTC) #6
jam
https://codereview.chromium.org/26277010/diff/39001/content/public/test/browser_test_utils.h File content/public/test/browser_test_utils.h (right): https://codereview.chromium.org/26277010/diff/39001/content/public/test/browser_test_utils.h#newcode227 content/public/test/browser_test_utils.h:227: class WebContentsDestroyedWatcher : public WebContentsObserver { On 2013/10/15 20:16:32, ...
7 years, 2 months ago (2013-10-15 20:47:14 UTC) #7
jam
https://codereview.chromium.org/26277010/diff/39001/content/public/test/browser_test_utils.h File content/public/test/browser_test_utils.h (right): https://codereview.chromium.org/26277010/diff/39001/content/public/test/browser_test_utils.h#newcode227 content/public/test/browser_test_utils.h:227: class WebContentsDestroyedWatcher : public WebContentsObserver { On 2013/10/15 20:47:15, ...
7 years, 2 months ago (2013-10-15 20:48:04 UTC) #8
Avi (use Gerrit)
On 2013/10/15 20:48:04, jam wrote: > > Yes I understand why we use that pattern ...
7 years, 2 months ago (2013-10-15 21:06:38 UTC) #9
jam
On 2013/10/15 21:06:38, Avi wrote: > On 2013/10/15 20:48:04, jam wrote: > > > Yes ...
7 years, 2 months ago (2013-10-16 01:12:50 UTC) #10
Avi (use Gerrit)
On 2013/10/16 01:12:50, jam wrote: > in that test, the code was actually not needed ...
7 years, 2 months ago (2013-10-16 02:55:19 UTC) #11
jam
On 2013/10/16 02:55:19, Avi wrote: > On 2013/10/16 01:12:50, jam wrote: > > in that ...
7 years, 2 months ago (2013-10-16 16:15:26 UTC) #12
Avi (use Gerrit)
On 2013/10/16 16:15:26, jam wrote: > If you trace the chrome::CloseTab(browser()); call > in that ...
7 years, 2 months ago (2013-10-16 16:32:52 UTC) #13
jam
lgtm
7 years, 2 months ago (2013-10-16 19:52:12 UTC) #14
Lei Zhang
chrome/ lgtm
7 years, 2 months ago (2013-10-16 19:56:11 UTC) #15
Scott Byer
Printing LGTM
7 years, 2 months ago (2013-10-16 19:57:14 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/26277010/39001
7 years, 2 months ago (2013-10-16 21:25:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/26277010/39001
7 years, 2 months ago (2013-10-17 01:34:52 UTC) #18
commit-bot: I haz the power
7 years, 2 months ago (2013-10-17 05:51:45 UTC) #19
Message was sent while issue was closed.
Change committed as 229059

Powered by Google App Engine
This is Rietveld 408576698