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

Unified Diff: chrome/browser/extensions/service_worker_apitest.cc

Issue 2166523003: Add ref count to service workers for extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments from falken@ Created 4 years, 2 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
Index: chrome/browser/extensions/service_worker_apitest.cc
diff --git a/chrome/browser/extensions/service_worker_apitest.cc b/chrome/browser/extensions/service_worker_apitest.cc
index 227584f99c1a1880ce3d64f2582357edeecf58e3..3ee03f3fbf111b224f87d874c0084b717fd774d2 100644
--- a/chrome/browser/extensions/service_worker_apitest.cc
+++ b/chrome/browser/extensions/service_worker_apitest.cc
@@ -622,7 +622,7 @@ IN_PROC_BROWSER_TEST_F(ServiceWorkerTest, TabsCreate) {
std::string result;
ASSERT_TRUE(content::ExecuteScriptAndExtractString(
web_contents, "window.runServiceWorker()", &result));
- ASSERT_EQ("chrome.tabs.create callback", result);
+ ASSERT_EQ("chrome.tabs.update callback", result);
Devlin 2016/10/05 17:02:25 I'm a little confused on the test for this. Where
lazyboy 2016/10/06 01:02:06 We don't. I only tested them with hacking the time
Devlin 2016/10/06 16:35:12 Can we add an explicit TODO? And out of curiosity
lazyboy 2016/10/06 17:57:37 Done. And out of curiosity, what are the main
Devlin 2016/10/06 18:58:06 Can we access the refcount from chrome/ (or could
lazyboy 2016/10/07 06:00:57 Added a test only method in content/public, added
EXPECT_EQ(starting_tab_count + 1, browser()->tab_strip_model()->count());
// Check extension shutdown path.

Powered by Google App Engine
This is Rietveld 408576698