ml: Rename to org.chromium.MachineLearning
org.chromium.Ml is not very readable. Renaming this while it's still
easy (Chromium doesn't call it yet).
TEST=local build
BUG=chromium:782499
CQ-DEPEND=CL:1152628, CL:1152627
Change-Id: Id7542964ff0c531be77756453a365897907422ba
Reviewed-on: https://chromium-review.googlesource.com/1152346
Commit-Ready: Andrew Moylan <amoylan@chromium.org>
Tested-by: Andrew Moylan <amoylan@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
diff --git a/ml/daemon.cc b/ml/daemon.cc
index 600e5fb..b1b5250 100644
--- a/ml/daemon.cc
+++ b/ml/daemon.cc
@@ -58,17 +58,17 @@
void Daemon::InitDBus() {
// Get or create the ExportedObject for the ML service.
dbus::ExportedObject* const ml_service_exported_object =
- bus_->GetExportedObject(dbus::ObjectPath(kMlServicePath));
+ bus_->GetExportedObject(dbus::ObjectPath(kMachineLearningServicePath));
CHECK(ml_service_exported_object);
// Register a handler of the BootstrapMojoConnection method.
CHECK(ml_service_exported_object->ExportMethodAndBlock(
- kMlInterfaceName, kBootstrapMojoConnectionMethod,
+ kMachineLearningInterfaceName, kBootstrapMojoConnectionMethod,
base::Bind(&Daemon::BootstrapMojoConnection,
weak_ptr_factory_.GetWeakPtr())));
// Take ownership of the ML service.
- CHECK(bus_->RequestOwnershipAndBlock(kMlServiceName,
+ CHECK(bus_->RequestOwnershipAndBlock(kMachineLearningServiceName,
dbus::Bus::REQUIRE_PRIMARY));
}