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

Side by Side Diff: components/offline_pages/core/background/update_request_task.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: update Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_pages/background/update_request_task.h" 5 #include "components/offline_pages/core/background/update_request_task.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 11
12 namespace offline_pages { 12 namespace offline_pages {
13 13
14 UpdateRequestTask::UpdateRequestTask( 14 UpdateRequestTask::UpdateRequestTask(
15 RequestQueueStore* store, 15 RequestQueueStore* store,
(...skipping 25 matching lines...) Expand all
41 41
42 bool UpdateRequestTask::ValidateReadResult(UpdateRequestsResult* result) { 42 bool UpdateRequestTask::ValidateReadResult(UpdateRequestsResult* result) {
43 return result->store_state == StoreState::LOADED && 43 return result->store_state == StoreState::LOADED &&
44 result->item_statuses.at(0).first == request_id() && 44 result->item_statuses.at(0).first == request_id() &&
45 result->item_statuses.at(0).second == ItemActionStatus::SUCCESS && 45 result->item_statuses.at(0).second == ItemActionStatus::SUCCESS &&
46 result->updated_items.size() == 1 && 46 result->updated_items.size() == 1 &&
47 result->updated_items.at(0).request_id() == request_id(); 47 result->updated_items.at(0).request_id() == request_id();
48 } 48 }
49 49
50 } // namespace offline_pages 50 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698