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

Unified Diff: chrome/test/chromedriver/window_commands.cc

Issue 275193003: [ChromeDriver] Expose CPU Profiling DevTools API into chromeWebDriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing web_view_stub method signatuer Created 6 years, 7 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 | « chrome/test/chromedriver/chrome/web_view_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/window_commands.cc
diff --git a/chrome/test/chromedriver/window_commands.cc b/chrome/test/chromedriver/window_commands.cc
index eee04d4261e86d58203450e50f77d71ff579f6e1..aa07400849a81f6fdd8a2e875d557e0794bb422f 100644
--- a/chrome/test/chromedriver/window_commands.cc
+++ b/chrome/test/chromedriver/window_commands.cc
@@ -257,6 +257,10 @@ Status ExecuteExecuteScript(
return Status(kUnknownError, "'script' must be a string");
if (script == ":takeHeapSnapshot") {
return web_view->TakeHeapSnapshot(value);
+ } else if (script == ":startProfile") {
+ return web_view->StartProfile();
+ } else if (script == ":endProfile") {
+ return web_view->EndProfile(value);
} else {
const base::ListValue* args;
if (!params.GetList("args", &args))
« no previous file with comments | « chrome/test/chromedriver/chrome/web_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698