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

Issue 99268: Making CloseWindow and CloseTab automation API... (Closed)

Created:
11 years, 7 months ago by huanr
Modified:
9 years ago
Reviewers:
Finnur
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Making CloseWindow and CloseTab automation API synchronous and robust. Adding automation APIs with corresponding IPC messages to count and find normal browser windows. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=15058

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -66 lines) Patch
M chrome/browser/automation/automation_provider.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_provider.cc View 3 chunks +18 lines, -2 lines 1 comment Download
M chrome/test/automated_ui_tests/automated_ui_test_base.h View 2 chunks +15 lines, -0 lines 2 comments Download
M chrome/test/automated_ui_tests/automated_ui_test_base.cc View 2 chunks +63 lines, -0 lines 2 comments Download
M chrome/test/automated_ui_tests/automated_ui_test_test.cc View 2 chunks +81 lines, -1 line 0 comments Download
M chrome/test/automated_ui_tests/automated_ui_tests.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/automated_ui_tests/automated_ui_tests.cc View 4 chunks +3 lines, -57 lines 0 comments Download
M chrome/test/automation/automation_messages_internal.h View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/test/automation/automation_proxy.h View 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/test/automation/automation_proxy.cc View 3 chunks +33 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
huanr
11 years, 7 months ago (2009-05-01 03:30:13 UTC) #1
Finnur
11 years, 7 months ago (2009-05-01 04:05:49 UTC) #2
LGTM. Minor nits below.

http://codereview.chromium.org/99268/diff/1/11
File chrome/browser/automation/automation_provider.cc (right):

http://codereview.chromium.org/99268/diff/1/11#newcode1362
Line 1362: *handle = browser_tracker_->Add(browser);
Don't you want to NULL handle if no browser was found?

http://codereview.chromium.org/99268/diff/1/9
File chrome/test/automated_ui_tests/automated_ui_test_base.cc (right):

http://codereview.chromium.org/99268/diff/1/9#newcode37
Line 37: LogInfoMessage("get_tab_count_time_out");
nit: add a 'd' after time (timed_out)

http://codereview.chromium.org/99268/diff/1/9#newcode43
Line 43: // Wait until tab is closed
nit: End the comment in a period.

http://codereview.chromium.org/99268/diff/1/5
File chrome/test/automated_ui_tests/automated_ui_test_base.h (right):

http://codereview.chromium.org/99268/diff/1/5#newcode28
Line 28: // Returns true if the tab is closed, false otherwise.
Please document why we never close the last tab of the last window.

http://codereview.chromium.org/99268/diff/1/5#newcode32
Line 32: // Returns true if the window is closed, false otherwise.
Please document why we never close the last window.

Powered by Google App Engine
This is Rietveld 408576698