Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: components/offline_items_collection/core/offline_item.cc

Issue 2757773002: Support providers with two namespaces (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/offline_items_collection/core/offline_item.h" 5 #include "components/offline_items_collection/core/offline_item.h"
6 6
7 namespace offline_items_collection { 7 namespace offline_items_collection {
8 8
9 ContentId::ContentId() = default; 9 ContentId::ContentId() = default;
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 page_url == offline_item.page_url && 54 page_url == offline_item.page_url &&
55 original_url == offline_item.original_url && 55 original_url == offline_item.original_url &&
56 is_off_the_record == offline_item.is_off_the_record && 56 is_off_the_record == offline_item.is_off_the_record &&
57 state == offline_item.state && 57 state == offline_item.state &&
58 is_resumable == offline_item.is_resumable && 58 is_resumable == offline_item.is_resumable &&
59 received_bytes == offline_item.received_bytes && 59 received_bytes == offline_item.received_bytes &&
60 percent_completed == offline_item.percent_completed && 60 percent_completed == offline_item.percent_completed &&
61 time_remaining_ms == offline_item.time_remaining_ms; 61 time_remaining_ms == offline_item.time_remaining_ms;
62 } 62 }
63 63
64 bool OfflineItem::operator<(const OfflineItem& offline_item) const {
65 return id < offline_item.id;
fgorski 2017/03/17 04:15:16 this is a little dangerous as (!(a < b) && !(b < a
David Trainor- moved to gerrit 2017/03/22 00:12:45 Yeah that's a good point. I didn't like this eith
66 }
67
64 } // namespace offline_items_collection 68 } // namespace offline_items_collection
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698