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

Unified Diff: mojo/shell/capability_filter_unittest.cc

Issue 1354003002: Make CapabilityFilter be part of Identity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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: mojo/shell/capability_filter_unittest.cc
diff --git a/mojo/shell/capability_filter_unittest.cc b/mojo/shell/capability_filter_unittest.cc
index 1dbc35b168a3e31608f9647291ea154477fe35b6..b35b317263acfa20898625300d101e89e43495c3 100644
--- a/mojo/shell/capability_filter_unittest.cc
+++ b/mojo/shell/capability_filter_unittest.cc
@@ -341,15 +341,11 @@ class CapabilityFilterTest : public testing::Test {
ServiceProviderPtr exposed_services;
(new ServiceProviderImpl(GetProxy(&exposed_services)))->
AddService<Validator>(validator_);
- URLRequestPtr request(URLRequest::New());
- request->url = String::From(url);
-
scoped_ptr<ConnectToApplicationParams> params(
new ConnectToApplicationParams);
- params->SetURLInfo(request.Pass());
+ params->SetTarget(Identity(GURL(url), std::string(), filter));
params->set_services(GetProxy(&services));
params->set_exposed_services(exposed_services.Pass());
- params->set_filter(filter);
params->set_on_application_end(base::MessageLoop::QuitWhenIdleClosure());
application_manager_->ConnectToApplication(params.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698