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

Unified Diff: chrome/browser/sync/internal_api/sync_manager.cc

Issue 8574045: Revert 110384 - Revert 110356 - Sync: Improve handling of database load failures (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/internal_api/sync_manager.cc
===================================================================
--- chrome/browser/sync/internal_api/sync_manager.cc (revision 110386)
+++ chrome/browser/sync/internal_api/sync_manager.cc (working copy)
@@ -802,7 +802,7 @@
bool signed_in = SignIn(credentials);
- if (signed_in || setup_for_test_mode_) {
+ if (signed_in) {
if (scheduler()) {
scheduler()->Start(
browser_sync::SyncScheduler::CONFIGURATION_MODE, base::Closure());
@@ -894,7 +894,6 @@
DCHECK(!initialized_) << "Should only happen once";
bool share_opened = dir_manager()->Open(username_for_share(), this);
- DCHECK(share_opened);
if (!share_opened) {
LOG(ERROR) << "Could not open share for:" << username_for_share();
return false;
@@ -1291,7 +1290,7 @@
net::NetworkChangeNotifier::RemoveIPAddressObserver(this);
observing_ip_address_changes_ = false;
- if (dir_manager()) {
+ if (initialized_ && dir_manager()) {
{
// Cryptographer should only be accessed while holding a
// transaction.
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698