OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/mus/app_list_presenter_mus.h" | 5 #include "ash/mus/app_list_presenter_mus.h" |
6 | 6 |
7 #include "services/shell/public/cpp/connector.h" | 7 #include "services/shell/public/cpp/connector.h" |
8 | 8 |
9 namespace ash { | 9 namespace ash { |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // TODO(mfomitchev): we have GetTargetVisibility() in mojom, but this | 44 // TODO(mfomitchev): we have GetTargetVisibility() in mojom, but this |
45 // shouldn't be a synchronous method. We should go through the call sites and | 45 // shouldn't be a synchronous method. We should go through the call sites and |
46 // either teach them to use a callback, or perhaps use a visibility observer. | 46 // either teach them to use a callback, or perhaps use a visibility observer. |
47 // NOTIMPLEMENTED(); | 47 // NOTIMPLEMENTED(); |
48 return false; | 48 return false; |
49 } | 49 } |
50 | 50 |
51 void AppListPresenterMus::ConnectIfNeeded() { | 51 void AppListPresenterMus::ConnectIfNeeded() { |
52 if (!connector_ || HasConnection(&presenter_)) | 52 if (!connector_ || HasConnection(&presenter_)) |
53 return; | 53 return; |
54 connector_->ConnectToInterface("exe:chrome", &presenter_); | 54 connector_->ConnectToInterface("service:content_browser", &presenter_); |
55 CHECK(HasConnection(&presenter_)) | 55 CHECK(HasConnection(&presenter_)) |
56 << "Could not connect to app_list::mojom::AppListPresenter."; | 56 << "Could not connect to app_list::mojom::AppListPresenter."; |
57 } | 57 } |
58 | 58 |
59 } // namespace ash | 59 } // namespace ash |
OLD | NEW |