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

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: '' 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
Index: chrome/test/data/webui/net_internals/net_internals_test.js
===================================================================
--- chrome/test/data/webui/net_internals/net_internals_test.js (revision 112237)
+++ chrome/test/data/webui/net_internals/net_internals_test.js (working copy)
@@ -423,6 +423,25 @@
}
};
+ // Creates an incognito window. May not be called if there already is an
+ // incognito in exitence. Returns immediately.
mmenke 2011/12/05 18:59:54 Added these here because if/when/whatever I added
+ 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.
@@ -509,6 +528,9 @@
switchToView: switchToView,
TaskQueue: TaskQueue,
Task: Task,
+ CallFunctionTask: CallFunctionTask,
+ getCreateIncognitoBrowserTask: getCreateIncognitoBrowserTask,
+ getCloseIncognitoBrowserTask: getCloseIncognitoBrowserTask,
Source: Source,
Event: Event,
CreateBeginEvent: CreateBeginEvent,

Powered by Google App Engine
This is Rietveld 408576698