Improve spelling of "notification".

There are many ways to get it wrong.

BUG=none

TBR=darin (for base/)
TBR=sky (for chrome/ and ui/)
TBR=dconnelly (for components/policy/)
TBR=tommi (for media/audio/)
TBR=asvitkine (for tools/metrics/)
TBR=mad (for win8)

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268203

Review URL: https://codereview.chromium.org/261293002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269103 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ash/system/tray/system_tray_unittest.cc b/ash/system/tray/system_tray_unittest.cc
index 1a2d355..fbf2859 100644
--- a/ash/system/tray/system_tray_unittest.cc
+++ b/ash/system/tray/system_tray_unittest.cc
@@ -312,7 +312,7 @@
   RunAllPendingInMessageLoop();
   ASSERT_TRUE(test_item->notification_view() != NULL);
 
-  // Show the detailed view, ensure the notificaiton view remains.
+  // Show the detailed view, ensure the notification view remains.
   tray->ShowDetailedView(detailed_item, 0, false, BUBBLE_CREATE_NEW);
   RunAllPendingInMessageLoop();
   ASSERT_TRUE(detailed_item->detailed_view() != NULL);
diff --git a/ash/system/web_notification/web_notification_tray_unittest.cc b/ash/system/web_notification/web_notification_tray_unittest.cc
index d39d3c9..eaf9d06a 100644
--- a/ash/system/web_notification/web_notification_tray_unittest.cc
+++ b/ash/system/web_notification/web_notification_tray_unittest.cc
@@ -332,11 +332,11 @@
   // even more, but still visible.
   GetSystemTray()->ShowNotificationView(test_item);
   EXPECT_TRUE(GetTray()->IsPopupVisible());
-  gfx::Rect work_area_with_tray_notificaiton = GetPopupWorkArea();
+  gfx::Rect work_area_with_tray_notification = GetPopupWorkArea();
   EXPECT_GT(work_area.size().GetArea(),
-            work_area_with_tray_notificaiton.size().GetArea());
+            work_area_with_tray_notification.size().GetArea());
   EXPECT_GT(work_area_with_tray.size().GetArea(),
-            work_area_with_tray_notificaiton.size().GetArea());
+            work_area_with_tray_notification.size().GetArea());
 
   // Close system tray, only system tray notifications.
   GetSystemTray()->ClickedOutsideBubble();
@@ -344,7 +344,7 @@
   gfx::Rect work_area_with_notification = GetPopupWorkArea();
   EXPECT_GT(work_area.size().GetArea(),
             work_area_with_notification.size().GetArea());
-  EXPECT_LT(work_area_with_tray_notificaiton.size().GetArea(),
+  EXPECT_LT(work_area_with_tray_notification.size().GetArea(),
             work_area_with_notification.size().GetArea());
 
   // Close the system tray notifications.
diff --git a/base/observer_list_unittest.cc b/base/observer_list_unittest.cc
index 57843f40..1bda3dc 100644
--- a/base/observer_list_unittest.cc
+++ b/base/observer_list_unittest.cc
@@ -443,7 +443,7 @@
 
   EXPECT_TRUE(b.added);
   // B's adder should not have been notified because it was added during
-  // notificaiton.
+  // notification.
   EXPECT_EQ(0, b.adder.total);
 
   // Notify again to make sure b's adder is notified.
@@ -467,7 +467,7 @@
 
   EXPECT_TRUE(b.added);
   // B's adder should not have been notified because it was added during
-  // notificaiton.
+  // notification.
   EXPECT_EQ(0, b.adder.total);
 
   // Notify again to make sure b's adder is notified.
diff --git a/chrome/browser/notifications/sync_notifier/synced_notification_app_info.h b/chrome/browser/notifications/sync_notifier/synced_notification_app_info.h
index 5f1227b..d68b26a 100644
--- a/chrome/browser/notifications/sync_notifier/synced_notification_app_info.h
+++ b/chrome/browser/notifications/sync_notifier/synced_notification_app_info.h
@@ -72,7 +72,7 @@
   std::vector<std::string> added_app_ids() { return added_app_ids_; }
 
   // If an app info is updated removing app ids, keep track of the removed app
-  // ids so we can later remove any affected notfications.
+  // ids so we can later remove any affected notifications.
   void set_removed_app_ids(std::vector<std::string> removed_app_ids) {
     removed_app_ids_ = removed_app_ids;
   }
diff --git a/chrome/browser/ui/fast_unload_controller.h b/chrome/browser/ui/fast_unload_controller.h
index 473ae38..7a8a452 100644
--- a/chrome/browser/ui/fast_unload_controller.h
+++ b/chrome/browser/ui/fast_unload_controller.h
@@ -20,7 +20,7 @@
 
 namespace content {
 class NotificationSource;
-class NotifictaionDetails;
+class NotificationDetails;
 class WebContents;
 }
 
diff --git a/chrome/browser/ui/panels/test_panel_notification_observer.h b/chrome/browser/ui/panels/test_panel_notification_observer.h
index 564b52a6..92b09152 100644
--- a/chrome/browser/ui/panels/test_panel_notification_observer.h
+++ b/chrome/browser/ui/panels/test_panel_notification_observer.h
@@ -11,7 +11,7 @@
 
 namespace content {
 class MessageLoopRunner;
-class NotificaitonSource;
+class NotificationSource;
 }
 
 // Common base class for a custom notification observer that waits
diff --git a/chrome/browser/ui/unload_controller.h b/chrome/browser/ui/unload_controller.h
index 33651c08..db64891 100644
--- a/chrome/browser/ui/unload_controller.h
+++ b/chrome/browser/ui/unload_controller.h
@@ -18,7 +18,7 @@
 
 namespace content {
 class NotificationSource;
-class NotifictaionDetails;
+class NotificationDetails;
 class WebContents;
 }
 
diff --git a/chrome/renderer/autofill/page_click_tracker_browsertest.cc b/chrome/renderer/autofill/page_click_tracker_browsertest.cc
index 4c5c8188..52b00ff 100644
--- a/chrome/renderer/autofill/page_click_tracker_browsertest.cc
+++ b/chrome/renderer/autofill/page_click_tracker_browsertest.cc
@@ -167,7 +167,7 @@
   EXPECT_FALSE(test_listener_.form_control_element_lost_focus_called_);
   test_listener_.ClearResults();
 
-  // Select another text field to test that the notifcation for the
+  // Select another text field to test that the notification for the
   // first text field losing focus is sent.
   EXPECT_TRUE(SimulateElementClick("text_2"));
   EXPECT_TRUE(test_listener_.form_control_element_lost_focus_called_);
@@ -205,7 +205,7 @@
   EXPECT_FALSE(test_listener_.form_control_element_lost_focus_called_);
   test_listener_.ClearResults();
 
-  // Select another textarea field to test that the notifcation for the
+  // Select another textarea field to test that the notification for the
   // first textarea field losing focus is sent.
   EXPECT_TRUE(SimulateElementClick("textarea_2"));
   EXPECT_TRUE(test_listener_.form_control_element_lost_focus_called_);
diff --git a/chrome/renderer/content_settings_observer_browsertest.cc b/chrome/renderer/content_settings_observer_browsertest.cc
index d444ccf..5bbed1f 100644
--- a/chrome/renderer/content_settings_observer_browsertest.cc
+++ b/chrome/renderer/content_settings_observer_browsertest.cc
@@ -121,7 +121,7 @@
   ProcessPendingMessages();
 
   // 4. Verify that the notification that javascript was blocked is sent after
-  //    the navigation notifiction is sent.
+  //    the navigation notification is sent.
   int navigation_index = -1;
   int block_index = -1;
   for (size_t i = 0; i < render_thread_->sink().message_count(); ++i) {
diff --git a/components/policy/core/common/schema_registry_unittest.cc b/components/policy/core/common/schema_registry_unittest.cc
index 94e245e..36749ea4 100644
--- a/components/policy/core/common/schema_registry_unittest.cc
+++ b/components/policy/core/common/schema_registry_unittest.cc
@@ -226,7 +226,7 @@
                               schema);
   Mock::VerifyAndClearExpectations(&observer);
 
-  // Untracking |registry1| doesn't trigger an update nofitication, because it
+  // Untracking |registry1| doesn't trigger an update notification, because it
   // doesn't contain any components.
   EXPECT_CALL(observer, OnSchemaRegistryUpdated(_)).Times(0);
   combined.Untrack(&registry1);
diff --git a/media/audio/cras/cras_input.h b/media/audio/cras/cras_input.h
index 2b7176b..36bf9b14 100644
--- a/media/audio/cras/cras_input.h
+++ b/media/audio/cras/cras_input.h
@@ -51,7 +51,7 @@
                           const timespec* sample_ts,
                           void* arg);
 
-  // Handles notificaiton that there was an error with the playback stream.
+  // Handles notification that there was an error with the playback stream.
   static int StreamError(cras_client* client,
                          cras_stream_id_t stream_id,
                          int err,
diff --git a/media/audio/cras/cras_unified.h b/media/audio/cras/cras_unified.h
index 36a58e5..2b29050d 100644
--- a/media/audio/cras/cras_unified.h
+++ b/media/audio/cras/cras_unified.h
@@ -54,7 +54,7 @@
                              const timespec* output_ts,
                              void* arg);
 
-  // Handles notificaiton that there was an error with the playback stream.
+  // Handles notification that there was an error with the playback stream.
   static int StreamError(cras_client* client,
                          cras_stream_id_t stream_id,
                          int err,
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 5c8ba98e..095a2782 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -38128,7 +38128,7 @@
 <enum name="NotificationActionType" type="int">
   <int value="0" label="Unknown"/>
   <int value="1" label="Notification added"/>
-  <int value="2" label="Notificaiton updated"/>
+  <int value="2" label="Notification updated"/>
   <int value="3" label="Notification clicked"/>
   <int value="4" label="Notification button clicked"/>
   <int value="5" label="Notification displayed"/>
diff --git a/ui/file_manager/file_manager/background/js/device_handler.js b/ui/file_manager/file_manager/background/js/device_handler.js
index e196f8f7..fa098d1 100644
--- a/ui/file_manager/file_manager/background/js/device_handler.js
+++ b/ui/file_manager/file_manager/background/js/device_handler.js
@@ -17,7 +17,7 @@
   this.mountStatus_ = {};
 
   /**
-   * List of ID of notificaitons that have a button.
+   * List of ID of notifications that have a button.
    * @type {Array.<string>}
    * @private
    */
@@ -176,7 +176,7 @@
 };
 
 /**
- * Shows the notificaiton after 5 seconds.
+ * Shows the notification after 5 seconds.
  * @param {string} devicePath Device path.
  */
 DeviceHandler.Notification.prototype.showLater = function(devicePath) {
diff --git a/ui/message_center/cocoa/tray_view_controller.mm b/ui/message_center/cocoa/tray_view_controller.mm
index af05a4b..6743051 100644
--- a/ui/message_center/cocoa/tray_view_controller.mm
+++ b/ui/message_center/cocoa/tray_view_controller.mm
@@ -56,7 +56,7 @@
 // Step 1: hide all notifications pending removal with fade-out animation.
 - (void)hideNotificationsPendingRemoval;
 
-// Step 2: move up all remaining notfications to take over the available space
+// Step 2: move up all remaining notifications to take over the available space
 // due to hiding notifications. The scroll view and the window remain unchanged.
 - (void)moveUpRemainingNotifications;
 
@@ -67,7 +67,7 @@
 // "Clear All" is clicked.
 - (void)clearOneNotification;
 
-// When all visible notificatons slide out, re-enable controls and remove
+// When all visible notifications slide out, re-enable controls and remove
 // notifications from the message center.
 - (void)finalizeClearAll;
 
diff --git a/ui/message_center/message_center.h b/ui/message_center/message_center.h
index cb2691a9..12ee38ea 100644
--- a/ui/message_center/message_center.h
+++ b/ui/message_center/message_center.h
@@ -65,7 +65,7 @@
   // VISIBILITY_TRANSIENT or VISIBILITY_SETTINGS.
   virtual NotificationList::PopupNotifications GetPopupNotifications() = 0;
 
-  // Management of NotificaitonBlockers.
+  // Management of NotificationBlockers.
   virtual void AddNotificationBlocker(NotificationBlocker* blocker) = 0;
   virtual void RemoveNotificationBlocker(NotificationBlocker* blocker) = 0;
 
diff --git a/ui/message_center/views/message_center_view.h b/ui/message_center/views/message_center_view.h
index 8a870ee..d2dd0e8 100644
--- a/ui/message_center/views/message_center_view.h
+++ b/ui/message_center/views/message_center_view.h
@@ -104,7 +104,7 @@
   MessageCenter* message_center_;  // Weak reference.
   MessageCenterTray* tray_;  // Weak reference.
 
-  // Map notification_id->NotificationView*. It contains all NotificaitonViews
+  // Map notification_id->NotificationView*. It contains all NotificationViews
   // currently displayed in MessageCenter.
   typedef std::map<std::string, NotificationView*> NotificationViewsMap;
   NotificationViewsMap notification_views_;  // Weak.
diff --git a/win8/metro_driver/chrome_app_view.cc b/win8/metro_driver/chrome_app_view.cc
index 3a9d23ec..87cdf374 100644
--- a/win8/metro_driver/chrome_app_view.cc
+++ b/win8/metro_driver/chrome_app_view.cc
@@ -777,7 +777,7 @@
   // process. If yes then fire the notification once for when the OSK is shown
   // and once for when it is hidden.
   // TODO(ananta)
-  // Take this out when the documented input pane notifcation issues are
+  // Take this out when the documented input pane notification issues are
   // addressed.
   HWND osk = ::FindWindow(kOSKClassName, NULL);
   if (::IsWindow(osk)) {