[Notes] Add UserNoteServiceFactory

Creates the //chrome/browser/user_notes directory for the chrome layer
logic of the User Notes feature.

Also creates the BrowserContextKeyedFactory for the UserNoteService.

Bug: 1303886
Change-Id: Idafff2d9cd208d35426c75a210333dbf2fdf9f49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3547338
Reviewed-by: Sebastien Seguin-Gagnon <[email protected]>
Reviewed-by: David Trainor <[email protected]>
Commit-Queue: Guillaume Jenkins <[email protected]>
Cr-Commit-Position: refs/heads/main@{#985465}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 53191e2d..db6fc6a 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -123,7 +123,7 @@
 }
 
 # Use a static library here because many test binaries depend on this but don't
-# require many files from it.This makes linking more efficient.
+# require many files from it. This makes linking more efficient.
 static_library("browser") {
   sources = [
     "about_flags.cc",
@@ -4390,6 +4390,8 @@
       "usb/web_usb_chooser_desktop.h",
       "usb/web_usb_detector.cc",
       "usb/web_usb_detector.h",
+      "user_notes/user_note_service_factory.cc",
+      "user_notes/user_note_service_factory.h",
       "webauthn/authenticator_list_observer.h",
       "webauthn/authenticator_reference.cc",
       "webauthn/authenticator_reference.h",
@@ -4471,6 +4473,8 @@
       "//components/soda",
       "//components/soda:constants",
       "//components/ukm/content",
+      "//components/user_notes:features",
+      "//components/user_notes/browser",
       "//components/web_modal",
       "//courgette:courgette_lib",
       "//services/device/public/cpp/hid",