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

Unified Diff: content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc

Issue 1601323002: Use GetLastCommittedOrigin instead of GetLastCommittedURL in bluetooth chooser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use GetLastCommittedOrigin instead of GetLastCommittedURL Created 4 years, 11 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: content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc b/content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc
index d4c53dc25671ed67001e97cbd70d32997da4bf9c..d80faab556d9966659cdfc221a886324d3a317cd 100644
--- a/content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc
@@ -6,7 +6,7 @@
#include "base/macros.h"
#include "base/strings/utf_string_conversions.h"
-#include "url/gurl.h"
+#include "url/origin.h"
namespace content {
@@ -102,9 +102,9 @@ scoped_ptr<BluetoothChooser>
LayoutTestBluetoothChooserFactory::RunBluetoothChooser(
WebContents* web_contents,
const BluetoothChooser::EventHandler& event_handler,
- const GURL& origin) {
+ const url::Origin& origin) {
std::string event = "chooser-opened(";
- event += origin.spec();
+ event += origin.Serialize();
event += ")";
events_.push_back(event);
return make_scoped_ptr(new Chooser(weak_this_.GetWeakPtr(), event_handler));

Powered by Google App Engine
This is Rietveld 408576698