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

Unified Diff: chrome/browser/ui/webui/conflicts_ui.cc

Issue 2420133002: Make module enumeration a low priority background task. (Closed)
Patch Set: Fix small bug. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/win/enumerate_modules_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/conflicts_ui.cc
diff --git a/chrome/browser/ui/webui/conflicts_ui.cc b/chrome/browser/ui/webui/conflicts_ui.cc
index d39f36787e8f7b3fbaf2402eb9633c9de31c4fcf..7a38864b5ed3ac1a3e4bd6095c4e5c967cb316fe 100644
--- a/chrome/browser/ui/webui/conflicts_ui.cc
+++ b/chrome/browser/ui/webui/conflicts_ui.cc
@@ -122,7 +122,10 @@ void ConflictsDOMHandler::HandleRequestModuleList(const base::ListValue* args) {
// easy enough to defend against this.
if (!observer_.IsObserving(model)) {
observer_.Add(model);
- model->ScanNow();
+
+ // Ask the scan to be performed immediately, and not in background mode.
+ // This ensures the results are available ASAP for the UI.
+ model->ScanNow(false);
}
}
« no previous file with comments | « no previous file | chrome/browser/win/enumerate_modules_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698