diff options
author | fgorski <fgorski@chromium.org> | 2015-08-06 14:43:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-06 21:44:29 +0000 |
commit | ab60e095f549876f7d9bde834387f3da37316e70 (patch) | |
tree | 809192a6eeed46b1e7eb95a1734cc1f6940a2b04 /components/offline_pages/offline_page_item.cc | |
parent | 4fb6b6f46c01262f37c7a170f3de2366f4d8cedf (diff) | |
download | chromium_src-ab60e095f549876f7d9bde834387f3da37316e70.zip chromium_src-ab60e095f549876f7d9bde834387f3da37316e70.tar.gz chromium_src-ab60e095f549876f7d9bde834387f3da37316e70.tar.bz2 |
[Offline pages] Adding bookmark ID to offline page (removing title)
This change is necessary, as title is already stored by the bookmark, while bookmark ID is how all the filtering and matching is done by the model and UI.
Without this update any filtering logic will be very inefficient.
BUG=491352
Review URL: https://codereview.chromium.org/1262743006
Cr-Commit-Position: refs/heads/master@{#342206}
Diffstat (limited to 'components/offline_pages/offline_page_item.cc')
-rw-r--r-- | components/offline_pages/offline_page_item.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/offline_pages/offline_page_item.cc b/components/offline_pages/offline_page_item.cc index 0631cbb..4e4d697 100644 --- a/components/offline_pages/offline_page_item.cc +++ b/components/offline_pages/offline_page_item.cc @@ -18,23 +18,23 @@ OfflinePageItem::OfflinePageItem() } OfflinePageItem::OfflinePageItem(const GURL& url, - const base::string16& title, + int64 bookmark_id, const base::FilePath& file_path, int64 file_size) : url(url), - title(title), + bookmark_id(bookmark_id), version(kCurrentVersion), file_path(file_path), file_size(file_size) { } OfflinePageItem::OfflinePageItem(const GURL& url, - const base::string16& title, + int64 bookmark_id, const base::FilePath& file_path, int64 file_size, const base::Time& creation_time) : url(url), - title(title), + bookmark_id(bookmark_id), version(kCurrentVersion), file_path(file_path), file_size(file_size), |