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

Unified Diff: content/browser/devtools/devtools_manager.h

Issue 615533002: Fix DevToolsManagerTest.TestObserver flakiness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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 | « no previous file | content/browser/devtools/devtools_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/devtools_manager.h
diff --git a/content/browser/devtools/devtools_manager.h b/content/browser/devtools/devtools_manager.h
index 5a86d25526185f85067c8fc20f0cfb562e48e709..979424f1c66fb748565c91c293b769f574a1e90d 100644
--- a/content/browser/devtools/devtools_manager.h
+++ b/content/browser/devtools/devtools_manager.h
@@ -54,7 +54,8 @@ class CONTENT_EXPORT DevToolsManager {
void RenderViewCreated(WebContents* web_contents, RenderViewHost* rvh);
void AgentHostChanged(scoped_refptr<DevToolsAgentHost> agent_host);
- static void SetObserverThrottleIntervalForTest(base::TimeDelta interval);
+ typedef base::Callback<void(base::Closure)> Scheduler;
+ void SetSchedulerForTest(Scheduler scheduler);
private:
friend struct DefaultSingletonTraits<DevToolsManager>;
@@ -69,8 +70,7 @@ class CONTENT_EXPORT DevToolsManager {
bool update_target_list_required_;
bool update_target_list_scheduled_;
base::CancelableClosure update_target_list_callback_;
-
- static base::TimeDelta observer_throttle_interval_;
+ Scheduler scheduler_;
DISALLOW_COPY_AND_ASSIGN(DevToolsManager);
};
« no previous file with comments | « no previous file | content/browser/devtools/devtools_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698