Rename SetBeforeFlushCallback to SetBeforeCommitCallback

This CL renames SetBeforeFlushCallback to SetBeforeCommitCallback in
CookieMonster::PersistentCookieStore and subclasses. What was previously
called before_flush_callback_ is more accurately called
before_commit_callback_ because it is called at the beginning of Commit,
which is called by methods other than Flush.

Bug: None
Change-Id: Ied21fdaace14935e3aba262c5eec05f295a34a52
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1499705
Commit-Queue: Lily Chen <[email protected]>
Reviewed-by: Mohammad Refaat <[email protected]>
Reviewed-by: Maks Orlovich <[email protected]>
Cr-Commit-Position: refs/heads/master@{#640439}
diff --git a/net/cookies/cookie_monster.h b/net/cookies/cookie_monster.h
index b9aeaaf..d92c94b 100644
--- a/net/cookies/cookie_monster.h
+++ b/net/cookies/cookie_monster.h
@@ -683,7 +683,7 @@
   // Sets a callback that will be run before the store flushes.  If |callback|
   // performs any async operations, the store will not wait for those to finish
   // before flushing.
-  virtual void SetBeforeFlushCallback(base::RepeatingClosure callback) = 0;
+  virtual void SetBeforeCommitCallback(base::RepeatingClosure callback) = 0;
 
   // Flushes the store and posts |callback| when complete. |callback| may be
   // NULL.