[Publish] Cache failures to publish, and disable the feature then.

Caches failures to publish and disables the feature in that case.
Also runs the callback after saving the note, and add the feature flag.

Fixed: 1216571, 1216572
Change-Id: Ibdee9d0f4be53ad1bd035986e7ac7e8d46be2996
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3039425
Commit-Queue: sebsg <[email protected]>
Auto-Submit: sebsg <[email protected]>
Reviewed-by: Guillaume Jenkins <[email protected]>
Cr-Commit-Position: refs/heads/master@{#903664}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index a109842..b42b0f9 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -3678,6 +3678,10 @@
 const char kXsurfaceMetricsReportingDescription[] =
     "Allows metrics reporting state to be passed to Xsurface";
 
+const char kWebNotesPublishName[] = "WebNotes Publish";
+const char kWebNotesPublishDescription[] =
+    "Allows users to save their created notes.";
+
 // Non-Android -----------------------------------------------------------------
 
 #else  // !defined(OS_ANDROID)