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

Unified Diff: chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_handler.cc

Issue 300173002: [SyncFS] Handle unavailable ExtensionService case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_handler.cc
diff --git a/chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_handler.cc b/chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_handler.cc
index 24db3cd392d539d1c5a5f9bb2ae7cacdf3b6b64f..1e2ee7a8db4738d7028bd36b8bb986468ec8965d 100644
--- a/chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_handler.cc
+++ b/chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_handler.cc
@@ -31,7 +31,10 @@ void ConvertExtensionStatusToDictionary(
const base::WeakPtr<ExtensionService>& extension_service,
const base::Callback<void(const base::ListValue&)>& callback,
const std::map<GURL, std::string>& status_map) {
- DCHECK(!extension_service);
+ if (!extension_service) {
+ callback.Run(base::ListValue());
+ return;
+ }
base::ListValue list;
for (std::map<GURL, std::string>::const_iterator itr = status_map.begin();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698