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

Unified Diff: chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc

Issue 2843513005: Fix uninitialized pointer in unit tests. (Closed)
Patch Set: Created 3 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
« 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/android/offline_pages/prerendering_offliner_unittest.cc
diff --git a/chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc b/chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc
index 7e73c92ed4fc1d5f45adf27354c769ae9606c95c..cc95fccc16b69f6cfbcc39657cd1977aa6a82638 100644
--- a/chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc
+++ b/chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc
@@ -45,7 +45,8 @@ class MockPrerenderingLoader : public PrerenderingLoader {
mock_loading_(false),
mock_loaded_(false),
mock_is_lowbar_met_(false),
- start_snapshot_called_(false) {}
+ start_snapshot_called_(false),
+ web_contents_(nullptr) {}
~MockPrerenderingLoader() override { delete web_contents_; }
bool LoadPage(const GURL& url,
« 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