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

Unified Diff: chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc

Issue 2695803004: Make browser process a singleton service (Closed)
Patch Set: . Created 3 years, 10 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
« no previous file with comments | « chrome/browser/ui/ash/ash_util.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
diff --git a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
index 38e4b616fb7bfd5d4bf80f656ea52ae44602f1e3..b7cc45a8b536650f06a1eaa3352356793256857f 100644
--- a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
+++ b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
@@ -102,12 +102,6 @@ void ChromeBrowserMainExtraPartsViews::ServiceManagerConnectionStarted(
DCHECK(connection);
#if defined(USE_AURA)
if (service_manager::ServiceManagerIsRemote()) {
- // TODO(rockot): Remove the blocking wait for init.
- // http://crbug.com/594852.
- base::RunLoop wait_loop;
- connection->SetInitializeHandler(wait_loop.QuitClosure());
- wait_loop.Run();
-
input_device_client_.reset(new ui::InputDeviceClient());
ui::mojom::InputDeviceServerPtr server;
connection->GetConnector()->BindInterface(ui::mojom::kServiceName, &server);
@@ -116,7 +110,7 @@ void ChromeBrowserMainExtraPartsViews::ServiceManagerConnectionStarted(
// WMState is owned as a member, so don't have MusClient create it.
const bool create_wm_state = false;
mus_client_ = base::MakeUnique<views::MusClient>(
- connection->GetConnector(), connection->GetIdentity(),
+ connection->GetConnector(), service_manager::Identity(),
content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::IO),
create_wm_state);
« no previous file with comments | « chrome/browser/ui/ash/ash_util.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698