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

Side by Side Diff: chrome/browser/chromeos/drive/drive_test_util.cc

Issue 12706012: chromeos: Destruct DriveResourceMetadata on the blocking pool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add note Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/drive/drive_test_util.h" 5 #include "chrome/browser/chromeos/drive/drive_test_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 feed_list, 222 feed_list,
223 is_delta_feed, 223 is_delta_feed,
224 root_feed_changestamp, 224 root_feed_changestamp,
225 base::Bind(&base::DoNothing)); 225 base::Bind(&base::DoNothing));
226 // ChangeListLoader::UpdateFromFeed is asynchronous, so wait for it to finish. 226 // ChangeListLoader::UpdateFromFeed is asynchronous, so wait for it to finish.
227 google_apis::test_util::RunBlockingPoolTask(); 227 google_apis::test_util::RunBlockingPoolTask();
228 228
229 return true; 229 return true;
230 } 230 }
231 231
232 void DeleteDriveCache(DriveCache* drive_cache) {
233 DCHECK(drive_cache);
234 drive_cache->Destroy();
235 // The cache destruction requires to post a task to the blocking pool.
236 google_apis::test_util::RunBlockingPoolTask();
237 }
238
239 } // namespace test_util 232 } // namespace test_util
240 } // namespace drive 233 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698