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

Unified Diff: chrome/browser/browsing_data/cache_counter_browsertest.cc

Issue 1420013004: Polish the result communication and display of the browsing data counters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved Value() to FinishedResult. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/browsing_data/cache_counter_browsertest.cc
diff --git a/chrome/browser/browsing_data/cache_counter_browsertest.cc b/chrome/browser/browsing_data/cache_counter_browsertest.cc
index a156c73d7aa58edb5ac041bd1a823334a31a88cc..43a97207f32de913b414a1cd3310dcbd98b7688c 100644
--- a/chrome/browser/browsing_data/cache_counter_browsertest.cc
+++ b/chrome/browser/browsing_data/cache_counter_browsertest.cc
@@ -129,11 +129,16 @@ class CacheCounterTest : public InProcessBrowserTest {
}
// Callback from the counter.
- void CountingCallback(bool finished, BrowsingDataCounter::ResultInt count) {
+ void CountingCallback(scoped_ptr<BrowsingDataCounter::Result> result) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- finished_ = finished;
- result_ = count;
- if (run_loop_ && finished)
+ finished_ = result->Finished();
+
+ if (finished_) {
+ result_ = static_cast<BrowsingDataCounter::FinishedResult*>(
Bernhard Bauer 2015/11/03 14:13:46 Basically, now anytime you call Value(), the call
msramek 2015/11/03 14:54:09 I'll leave it as it is now. We'd get rid of the ca
+ result.get())->Value();
+ }
+
+ if (run_loop_ && finished_)
run_loop_->Quit();
}

Powered by Google App Engine
This is Rietveld 408576698