diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-11 21:49:56 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-11 21:49:56 +0000 |
commit | a5a3752356ab9c7703c49e3809da0af7ca998472 (patch) | |
tree | 327e73f68387c53219dac46afc13fe6962485a17 /chrome/browser/safe_browsing/safe_browsing_database.h | |
parent | e77ea34b5c0bef7f64399256968263058d6b24f2 (diff) | |
download | chromium_src-a5a3752356ab9c7703c49e3809da0af7ca998472.zip chromium_src-a5a3752356ab9c7703c49e3809da0af7ca998472.tar.gz chromium_src-a5a3752356ab9c7703c49e3809da0af7ca998472.tar.bz2 |
Handle the possibility of failure when starting a
SafeBrowsing update transaction.
If we fail to start the transaction, we report the error
to the protocol manager which aborts the update process.
Review URL: http://codereview.chromium.org/9778
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5207 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_database.h')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_database.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.h b/chrome/browser/safe_browsing/safe_browsing_database.h index 9e07297..e504054 100644 --- a/chrome/browser/safe_browsing/safe_browsing_database.h +++ b/chrome/browser/safe_browsing/safe_browsing_database.h @@ -82,7 +82,7 @@ class SafeBrowsingDatabase { // Called when the user's machine has resumed from a lower power state. virtual void HandleResume() = 0; - virtual void UpdateStarted() {} + virtual bool UpdateStarted() { return true; } virtual void UpdateFinished(bool update_succeeded) {} virtual std::wstring filename() const { return filename_; } |