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

Unified Diff: chrome/test/data/webui/net_internals/net_internals_test.js

Issue 8775067: Clear DNS cache and passive log collected on incognito close. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove call to IOThread::message_loop() Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/webui/net_internals/dns_view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/net_internals/net_internals_test.js
===================================================================
--- chrome/test/data/webui/net_internals/net_internals_test.js (revision 112998)
+++ chrome/test/data/webui/net_internals/net_internals_test.js (working copy)
@@ -424,6 +424,25 @@
}
};
+ // Creates an incognito window. May not be called if there already is an
+ // incognito in exitence. Returns immediately.
+ function getCreateIncognitoBrowserTask() {
+ return new CallFunctionTask(
+ function() {
+ chrome.send('createIncognitoBrowser');
+ });
+ };
+
+ // Closes an incognito window created with the task above. May only be
+ // called if there's an incognito window created by the above function
+ // that has yet to be closed. Returns immediately.
+ function getCloseIncognitoBrowserTask() {
+ return new CallFunctionTask(
+ function() {
+ chrome.send('closeIncognitoBrowser');
+ });
+ };
+
/**
* Returns true if a node does not have a 'display' property of 'none'.
* @param {node}: node The node to check.
@@ -510,6 +529,9 @@
switchToView: switchToView,
TaskQueue: TaskQueue,
Task: Task,
+ CallFunctionTask: CallFunctionTask,
+ getCreateIncognitoBrowserTask: getCreateIncognitoBrowserTask,
+ getCloseIncognitoBrowserTask: getCloseIncognitoBrowserTask,
Source: Source,
Event: Event,
CreateBeginEvent: CreateBeginEvent,
« no previous file with comments | « chrome/test/data/webui/net_internals/dns_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698