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

Unified Diff: mash/task_viewer/task_viewer.cc

Issue 1775243002: Rename PackageManager->Catalog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@42cpi
Patch Set: . Created 4 years, 9 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 | « mash/task_viewer/BUILD.gn ('k') | mojo/mojo_base.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/task_viewer/task_viewer.cc
diff --git a/mash/task_viewer/task_viewer.cc b/mash/task_viewer/task_viewer.cc
index 4a26c4fa544de363a52d44b2c110a7a15da883bf..0e01a0059252f6f7d5f71d702cdd08be84ed4a6a 100644
--- a/mash/task_viewer/task_viewer.cc
+++ b/mash/task_viewer/task_viewer.cc
@@ -14,7 +14,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/services/package_manager/public/interfaces/catalog.mojom.h"
+#include "mojo/services/catalog/public/interfaces/catalog.mojom.h"
#include "mojo/shell/public/cpp/connection.h"
#include "mojo/shell/public/cpp/connector.h"
#include "mojo/shell/public/interfaces/shell.mojom.h"
@@ -39,7 +39,7 @@ class TaskViewerContents : public views::WidgetDelegateView,
public mojo::shell::mojom::InstanceListener {
public:
TaskViewerContents(mojo::shell::mojom::InstanceListenerRequest request,
- package_manager::mojom::CatalogPtr catalog)
+ catalog::mojom::CatalogPtr catalog)
: binding_(this, std::move(request)),
catalog_(std::move(catalog)),
table_view_(nullptr),
@@ -195,8 +195,7 @@ class TaskViewerContents : public views::WidgetDelegateView,
}
void OnGotCatalogEntries(
- mojo::Map<mojo::String,
- package_manager::mojom::CatalogEntryPtr> entries) {
+ mojo::Map<mojo::String, catalog::mojom::CatalogEntryPtr> entries) {
for (auto it = instances_.begin(); it != instances_.end(); ++it) {
auto entry_it = entries.find((*it)->url);
if (entry_it != entries.end()) {
@@ -240,7 +239,7 @@ class TaskViewerContents : public views::WidgetDelegateView,
}
mojo::Binding<mojo::shell::mojom::InstanceListener> binding_;
- package_manager::mojom::CatalogPtr catalog_;
+ catalog::mojom::CatalogPtr catalog_;
views::TableView* table_view_;
views::View* table_view_parent_;
@@ -274,8 +273,8 @@ void TaskViewer::Initialize(mojo::Connector* connector,
mojo::shell::mojom::InstanceListenerRequest request = GetProxy(&listener);
shell->AddInstanceListener(std::move(listener));
- package_manager::mojom::CatalogPtr catalog;
- connector->ConnectToInterface("mojo:package_manager", &catalog);
+ catalog::mojom::CatalogPtr catalog;
+ connector->ConnectToInterface("mojo:catalog", &catalog);
TaskViewerContents* task_viewer = new TaskViewerContents(
std::move(request), std::move(catalog));
« no previous file with comments | « mash/task_viewer/BUILD.gn ('k') | mojo/mojo_base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698