Commit 565dbbd3 authored by Shakti Sahu's avatar Shakti Sahu Committed by Commit Bot

Disable notifications and infobar UI for content indexed downloads

Bug: 1011415
Change-Id: Ide63b34e5afdf9a446cb8c7f5803008c7ced6769
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1841939Reviewed-by: default avatarRayan Kanso <rayankans@chromium.org>
Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704654}
parent cb43fc3c
...@@ -101,7 +101,7 @@ OfflineItem EntryToOfflineItem(const content::ContentIndexEntry& entry) { ...@@ -101,7 +101,7 @@ OfflineItem EntryToOfflineItem(const content::ContentIndexEntry& entry) {
item.description = entry.description->description; item.description = entry.description->description;
item.filter = CategoryToFilter(entry.description->category); item.filter = CategoryToFilter(entry.description->category);
item.is_transient = false; item.is_transient = false;
item.is_suggested = false; item.is_suggested = true;
item.creation_time = entry.registration_time; item.creation_time = entry.registration_time;
item.is_openable = true; item.is_openable = true;
item.state = offline_items_collection::OfflineItemState::COMPLETE; item.state = offline_items_collection::OfflineItemState::COMPLETE;
......
...@@ -83,6 +83,7 @@ TEST_F(ContentIndexProviderImplTest, OfflineItemCreation) { ...@@ -83,6 +83,7 @@ TEST_F(ContentIndexProviderImplTest, OfflineItemCreation) {
EXPECT_FALSE(item.title.empty()); EXPECT_FALSE(item.title.empty());
EXPECT_FALSE(item.description.empty()); EXPECT_FALSE(item.description.empty());
EXPECT_FALSE(item.is_transient); EXPECT_FALSE(item.is_transient);
EXPECT_TRUE(item.is_suggested);
EXPECT_TRUE(item.is_openable); EXPECT_TRUE(item.is_openable);
EXPECT_EQ(item.page_url, kLaunchURL); EXPECT_EQ(item.page_url, kLaunchURL);
} }
......
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