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

Unified Diff: chrome/browser/extensions/api/extension_action/page_action_apitest.cc

Issue 2481923002: [WIP] make GURL::path() return a StringPiece (Closed)
Patch Set: thanks asan Created 4 years, 1 month 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/api/extension_action/page_action_apitest.cc
diff --git a/chrome/browser/extensions/api/extension_action/page_action_apitest.cc b/chrome/browser/extensions/api/extension_action/page_action_apitest.cc
index dbb9671ed8369f131d7bf447b7332cbad4c959a6..faeac8cbbcfa8af09dc164a3f5bef1f03bb29b0a 100644
--- a/chrome/browser/extensions/api/extension_action/page_action_apitest.cc
+++ b/chrome/browser/extensions/api/extension_action/page_action_apitest.cc
@@ -115,7 +115,7 @@ IN_PROC_BROWSER_TEST_F(PageActionApiTest, AddPopup) {
<< "Clicking on the page action should have caused a popup to be added.";
ASSERT_STREQ("/a_popup.html",
- page_action->GetPopupUrl(tab_id).path().c_str());
+ page_action->GetPopupUrl(tab_id).path().as_string().c_str());
// Now change the popup from a_popup.html to a_second_popup.html .
// Load a page which removes the popup using chrome.pageAction.setPopup().
@@ -129,7 +129,7 @@ IN_PROC_BROWSER_TEST_F(PageActionApiTest, AddPopup) {
ASSERT_TRUE(page_action->HasPopup(tab_id));
ASSERT_STREQ("/another_popup.html",
- page_action->GetPopupUrl(tab_id).path().c_str());
+ page_action->GetPopupUrl(tab_id).path().as_string().c_str());
}
// Test that calling chrome.pageAction.setPopup() can remove a popup.

Powered by Google App Engine
This is Rietveld 408576698