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

Unified Diff: chrome/browser/ui/webui/downloads_dom_handler.h

Issue 10154004: re-use WebUIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix reload DCHECKs Created 8 years, 8 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
Index: chrome/browser/ui/webui/downloads_dom_handler.h
diff --git a/chrome/browser/ui/webui/downloads_dom_handler.h b/chrome/browser/ui/webui/downloads_dom_handler.h
index 9308e2876776bd3ec0c731854f049379a17f3235..ffb76ce128a721a9d08a68514745b20bc33689e6 100644
--- a/chrome/browser/ui/webui/downloads_dom_handler.h
+++ b/chrome/browser/ui/webui/downloads_dom_handler.h
@@ -118,6 +118,10 @@ class DownloadsDOMHandler : public content::WebUIMessageHandler,
// NULL.
content::DownloadManager* original_profile_download_manager_;
+ // True once the page has loaded the first time (it may load multiple times,
+ // e.g. on reload).
+ bool initialized_;
+
// The current set of visible DownloadItems for this view received from the
// DownloadManager. DownloadManager owns the DownloadItems. The vector is
// kept in order, sorted by ascending start time.

Powered by Google App Engine
This is Rietveld 408576698