Commit e84fe751 authored by Alexey Baskakov's avatar Alexey Baskakov Committed by Commit Bot

dpwa: Clean up WebApp ostream output operator used for debugging.

Inline previously established constants. The formatting has become messy
anyway.

Fixed: 1103916
Change-Id: I9e8970614c05bde425c67418e42028150f281b3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315896
Auto-Submit: Alexey Baskakov <loyso@chromium.org>
Commit-Queue: Daniel Murphy <dmurph@chromium.org>
Reviewed-by: default avatarDaniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791291}
parent c1c36a1e
...@@ -253,13 +253,6 @@ std::ostream& operator<<(std::ostream& out, ...@@ -253,13 +253,6 @@ std::ostream& operator<<(std::ostream& out,
} }
std::ostream& operator<<(std::ostream& out, const WebApp& app) { std::ostream& operator<<(std::ostream& out, const WebApp& app) {
const std::string display_mode =
blink::DisplayModeToString(app.display_mode_);
const std::string user_display_mode =
blink::DisplayModeToString(app.user_display_mode_);
const bool is_locally_installed = app.is_locally_installed_;
const bool is_in_sync_install = app.is_in_sync_install_;
out << "app_id: " << app.app_id_ << std::endl out << "app_id: " << app.app_id_ << std::endl
<< " name: " << app.name_ << std::endl << " name: " << app.name_ << std::endl
<< " launch_url: " << app.launch_url_ << std::endl << " launch_url: " << app.launch_url_ << std::endl
...@@ -267,25 +260,27 @@ std::ostream& operator<<(std::ostream& out, const WebApp& app) { ...@@ -267,25 +260,27 @@ std::ostream& operator<<(std::ostream& out, const WebApp& app) {
<< " theme_color: " << ColorToString(app.theme_color_) << std::endl << " theme_color: " << ColorToString(app.theme_color_) << std::endl
<< " background_color: " << ColorToString(app.background_color_) << " background_color: " << ColorToString(app.background_color_)
<< std::endl << std::endl
<< " display_mode: " << display_mode << std::endl << " display_mode: " << blink::DisplayModeToString(app.display_mode_)
<< std::endl
<< " display_override: " << app.display_mode_override_.size() << " display_override: " << app.display_mode_override_.size()
<< std::endl; << std::endl;
for (const DisplayMode& mode : app.display_mode_override_) for (const DisplayMode& mode : app.display_mode_override_)
out << " " << blink::DisplayModeToString(mode) << std::endl; out << " " << blink::DisplayModeToString(mode) << std::endl;
out << " user_display_mode: " << user_display_mode << std::endl out << " user_display_mode: "
<< blink::DisplayModeToString(app.user_display_mode_) << std::endl
<< " user_page_ordinal: " << app.user_page_ordinal_.ToDebugString() << " user_page_ordinal: " << app.user_page_ordinal_.ToDebugString()
<< std::endl << std::endl
<< " user_launch_ordinal_: " << app.user_launch_ordinal_.ToDebugString() << " user_launch_ordinal: " << app.user_launch_ordinal_.ToDebugString()
<< std::endl << std::endl
<< " sources: " << app.sources_.to_string() << std::endl << " sources: " << app.sources_.to_string() << std::endl
<< " is_locally_installed: " << is_locally_installed << std::endl << " is_locally_installed: " << app.is_locally_installed_ << std::endl
<< " is_in_sync_install: " << is_in_sync_install << std::endl << " is_in_sync_install: " << app.is_in_sync_install_ << std::endl
<< " sync_fallback_data: " << std::endl << " sync_fallback_data: " << std::endl
<< app.sync_fallback_data_ << " description: " << app.description_ << app.sync_fallback_data_ << " description: " << app.description_
<< std::endl << std::endl
<< " last_launch_time: " << app.last_launch_time_ << std::endl << " last_launch_time: " << app.last_launch_time_ << std::endl
<< " install_time: " << app.install_time_ << std::endl << " install_time: " << app.install_time_ << std::endl
<< " is_generated_icon_: " << app.is_generated_icon_ << std::endl; << " is_generated_icon: " << app.is_generated_icon_ << std::endl;
for (const WebApplicationIconInfo& icon : app.icon_infos_) for (const WebApplicationIconInfo& icon : app.icon_infos_)
out << " icon_info: " << icon << std::endl; out << " icon_info: " << icon << std::endl;
for (SquareSizePx size : app.downloaded_icon_sizes_) for (SquareSizePx size : app.downloaded_icon_sizes_)
......
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