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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 9956097: suppress user/password dialog when re-enabling sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // any model-modifying operations. 476 // any model-modifying operations.
477 bool ShouldPushChanges(); 477 bool ShouldPushChanges();
478 478
479 const GURL& sync_service_url() const { return sync_service_url_; } 479 const GURL& sync_service_url() const { return sync_service_url_; }
480 bool auto_start_enabled() const { return auto_start_enabled_; } 480 bool auto_start_enabled() const { return auto_start_enabled_; }
481 SigninManager* signin() const { return signin_; } 481 SigninManager* signin() const { return signin_; }
482 482
483 // Stops the sync backend and sets the flag for suppressing sync startup. 483 // Stops the sync backend and sets the flag for suppressing sync startup.
484 void StopAndSuppress(); 484 void StopAndSuppress();
485 485
486 // Resets the flag for suppressing sync startup.
487 void Unsuppress();
488
486 // Resets the flag for suppressing sync startup and starts the sync backend. 489 // Resets the flag for suppressing sync startup and starts the sync backend.
487 void UnsuppressAndStart(); 490 void UnsuppressAndStart();
488 491
489 // Marks all currently registered types as "acknowledged" so we won't prompt 492 // Marks all currently registered types as "acknowledged" so we won't prompt
490 // the user about them any more. 493 // the user about them any more.
491 void AcknowledgeSyncedTypes(); 494 void AcknowledgeSyncedTypes();
492 495
493 SyncGlobalError* sync_global_error() { return sync_global_error_.get(); } 496 SyncGlobalError* sync_global_error() { return sync_global_error_.get(); }
494 497
495 virtual const FailedDatatypesHandler& failed_datatypes_handler(); 498 virtual const FailedDatatypesHandler& failed_datatypes_handler();
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 bool setup_in_progress_; 740 bool setup_in_progress_;
738 741
739 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 742 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
740 }; 743 };
741 744
742 bool ShouldShowActionOnUI( 745 bool ShouldShowActionOnUI(
743 const browser_sync::SyncProtocolError& error); 746 const browser_sync::SyncProtocolError& error);
744 747
745 748
746 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 749 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698