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

Unified Diff: chrome/browser/browsing_data/passwords_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: 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/passwords_counter_browsertest.cc
diff --git a/chrome/browser/browsing_data/passwords_counter_browsertest.cc b/chrome/browser/browsing_data/passwords_counter_browsertest.cc
index 4ef3fd9a0cf397271aa234dbcf5f371cbcef3feb..53d8e5209fd46cd10b2bfc7207be3fd5287b1095 100644
--- a/chrome/browser/browsing_data/passwords_counter_browsertest.cc
+++ b/chrome/browser/browsing_data/passwords_counter_browsertest.cc
@@ -87,10 +87,11 @@ class PasswordsCounterTest : public InProcessBrowserTest,
return result_;
}
- void Callback(bool finished, BrowsingDataCounter::ResultInt count) {
- finished_ = finished;
- result_ = count;
- if (run_loop_ && finished)
+ void Callback(scoped_ptr<BrowsingDataCounter::Result> result) {
+ finished_ = result->finished();
+ result_ = result->value();
+
+ if (run_loop_ && finished_)
run_loop_->Quit();
}

Powered by Google App Engine
This is Rietveld 408576698