Index: chrome/browser/sync/internal_api/sync_manager.cc |
=================================================================== |
--- chrome/browser/sync/internal_api/sync_manager.cc (revision 110181) |
+++ chrome/browser/sync/internal_api/sync_manager.cc (working copy) |
@@ -802,7 +802,7 @@ |
bool signed_in = SignIn(credentials); |
- if (signed_in) { |
+ if (signed_in || setup_for_test_mode_) { |
if (scheduler()) { |
scheduler()->Start( |
browser_sync::SyncScheduler::CONFIGURATION_MODE, base::Closure()); |
@@ -894,6 +894,7 @@ |
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; |
@@ -1290,7 +1291,7 @@ |
net::NetworkChangeNotifier::RemoveIPAddressObserver(this); |
observing_ip_address_changes_ = false; |
- if (initialized_ && dir_manager()) { |
+ if (dir_manager()) { |
{ |
// Cryptographer should only be accessed while holding a |
// transaction. |