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

Unified Diff: components/html_viewer/global_state.cc

Issue 1455833005: Convert ConnectToApplication to take a params class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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: components/html_viewer/global_state.cc
diff --git a/components/html_viewer/global_state.cc b/components/html_viewer/global_state.cc
index 9d7f46b3947885f9bb593cf0390a4a992ea16868..dea9891eff3db9ae8a83a957e64bcc5fb966f4b6 100644
--- a/components/html_viewer/global_state.cc
+++ b/components/html_viewer/global_state.cc
@@ -124,9 +124,7 @@ void GlobalState::InitIfNecessary(const gfx::Size& screen_size_in_pixels,
DisplaysFromSizeAndScale(screen_size_in_pixels_, device_pixel_ratio_)));
base::DiscardableMemoryAllocator::SetInstance(&discardable_memory_allocator_);
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = mojo::String::From("mojo:mus");
- app_->ConnectToService(request.Pass(), &gpu_service_);
+ app_->ConnectToService("mojo:mus", &gpu_service_);
gpu_service_->GetGpuInfo(base::Bind(&GlobalState::GetGpuInfoCallback,
base::Unretained(this)));
« no previous file with comments | « components/html_viewer/blink_platform_impl.cc ('k') | components/html_viewer/html_document_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698