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

Unified Diff: tools/perf/page_sets/dual_browser_story.py

Issue 2265713002: [tools/perf] Initialize network_controller_backend in dual_browser_story_shared_state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/dual_browser_story.py
diff --git a/tools/perf/page_sets/dual_browser_story.py b/tools/perf/page_sets/dual_browser_story.py
index 6edaf60b4c228da2794250980dd4eddb99a33bfc..d21e0e666782eed1804a9ac989b92c4e5ca62e24 100644
--- a/tools/perf/page_sets/dual_browser_story.py
+++ b/tools/perf/page_sets/dual_browser_story.py
@@ -136,6 +136,10 @@ class MultiBrowserSharedState(story_module.SharedState):
if self._platform is None:
self._platform = possible_browser.platform
+ # TODO(nedn): Remove the if condition once
+ # https://codereview.chromium.org/2265593003/ is rolled to Chromium tree.
+ if hasattr(self._platform.network_controller, 'InitializeIfNeeded'):
+ self._platform.network_controller.InitializeIfNeeded()
else:
assert self._platform is possible_browser.platform
self._possible_browsers[browser_type] = (possible_browser, options)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698