Commit 1edfa1cd authored by Fletcher Woodruff's avatar Fletcher Woodruff Committed by Commit Bot

Use StartScan method in LorgnetteManagerClient

The implementation of StartScan now matches StartScanMultiPage in
Lorgnette. Convert LorgnetteManagerClient to use StartScan so that
StartScanMultiPage can be deleted.

Bug: b:161239919
Change-Id: Id3cd3bd7221aec461ade27cf3450f7f8fbf3fc98
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2427018Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Fletcher Woodruff <fletcherw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#810728}
parent 47b7ce81
...@@ -80,7 +80,7 @@ class LorgnetteManagerClientImpl : public LorgnetteManagerClient { ...@@ -80,7 +80,7 @@ class LorgnetteManagerClientImpl : public LorgnetteManagerClient {
request.mutable_settings()->set_allocated_source(&source); request.mutable_settings()->set_allocated_source(&source);
dbus::MethodCall method_call(lorgnette::kManagerServiceInterface, dbus::MethodCall method_call(lorgnette::kManagerServiceInterface,
lorgnette::kStartScanMultiPageMethod); lorgnette::kStartScanMethod);
dbus::MessageWriter writer(&method_call); dbus::MessageWriter writer(&method_call);
if (!writer.AppendProtoAsArrayOfBytes(request)) { if (!writer.AppendProtoAsArrayOfBytes(request)) {
LOG(ERROR) << "Failed to encode StartScanRequest protobuf"; LOG(ERROR) << "Failed to encode StartScanRequest protobuf";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment