Index: chrome/test/data/extensions/api_test/activity_log_private/test/test.js |
diff --git a/chrome/test/data/extensions/api_test/activity_log_private/test/test.js b/chrome/test/data/extensions/api_test/activity_log_private/test/test.js |
index db6fa3f16cca4b64ec42cd8ed6a9b90305d2134a..3bc6fe565d72ce179d464858a49f871da6a3e80d 100644 |
--- a/chrome/test/data/extensions/api_test/activity_log_private/test/test.js |
+++ b/chrome/test/data/extensions/api_test/activity_log_private/test/test.js |
@@ -332,9 +332,14 @@ chrome.activityLogPrivate.onExtensionActivity.addListener( |
console.log('Logged:' + apiCall + ' Expected:' + expectedCall); |
chrome.test.assertEq(expectedCall, apiCall); |
- // Check that no real URLs are logged in incognito-mode tests. |
- checkIncognito(activity['pageUrl'], testCases[testCaseIndx].is_incognito); |
- checkIncognito(activity['argUrl'], testCases[testCaseIndx].is_incognito); |
+ // Check that no real URLs are logged in incognito-mode tests. Ignore |
+ // the initial call to windows.create opening the tab. |
+ if (apiCall != 'windows.create') { |
+ checkIncognito(activity['pageUrl'], |
+ testCases[testCaseIndx].is_incognito); |
+ checkIncognito(activity['argUrl'], |
+ testCases[testCaseIndx].is_incognito); |
+ } |
// If all the expected calls have been logged for this test case then |
// mark as suceeded and move to the next. Otherwise look for the next |