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

Unified Diff: components/offline_pages/background/request_queue_store_sql.cc

Issue 2384423003: [Offline pages] Resetting offline page metadata store if initial load fails (Closed)
Patch Set: Rebased and comments addressed 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
Index: components/offline_pages/background/request_queue_store_sql.cc
diff --git a/components/offline_pages/background/request_queue_store_sql.cc b/components/offline_pages/background/request_queue_store_sql.cc
index f88872be361b2960580f1682d6668b23844ade69..08d22b536d282f861d6ec08dd43a2305735fa20c 100644
--- a/components/offline_pages/background/request_queue_store_sql.cc
+++ b/components/offline_pages/background/request_queue_store_sql.cc
@@ -339,7 +339,7 @@ void ResetSync(sql::Connection* db,
StoreState state;
if (!success)
state = StoreState::FAILED_RESET;
- if (InitDatabase(db, db_file_path))
+ else if (InitDatabase(db, db_file_path))
state = StoreState::LOADED;
else
state = StoreState::FAILED_LOADING;

Powered by Google App Engine
This is Rietveld 408576698