From a6f0fcf89f7b2b09df1884ab68495c0efe5f56bb Mon Sep 17 00:00:00 2001 From: Vadim Macagon Date: Thu, 9 Jun 2016 12:21:21 +0700 Subject: [PATCH] Fix typo in `atom::TaskbarHost::InitializeTaskbar()` `InitailizeTaskbar` -> `InitializeTaskbar` --- atom/browser/ui/win/taskbar_host.cc | 8 ++++---- atom/browser/ui/win/taskbar_host.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/atom/browser/ui/win/taskbar_host.cc b/atom/browser/ui/win/taskbar_host.cc index f7841cfa856c..78bcc578c19f 100644 --- a/atom/browser/ui/win/taskbar_host.cc +++ b/atom/browser/ui/win/taskbar_host.cc @@ -54,7 +54,7 @@ TaskbarHost::~TaskbarHost() { bool TaskbarHost::SetThumbarButtons( HWND window, const std::vector& buttons) { - if (buttons.size() > kMaxButtonsCount || !InitailizeTaskbar()) + if (buttons.size() > kMaxButtonsCount || !InitializeTaskbar()) return false; callback_map_.clear(); @@ -118,7 +118,7 @@ bool TaskbarHost::SetThumbarButtons( } bool TaskbarHost::SetProgressBar(HWND window, double value) { - if (!InitailizeTaskbar()) + if (!InitializeTaskbar()) return false; HRESULT r; @@ -133,7 +133,7 @@ bool TaskbarHost::SetProgressBar(HWND window, double value) { bool TaskbarHost::SetOverlayIcon( HWND window, const gfx::Image& overlay, const std::string& text) { - if (!InitailizeTaskbar()) + if (!InitializeTaskbar()) return false; base::win::ScopedHICON icon( @@ -152,7 +152,7 @@ bool TaskbarHost::HandleThumbarButtonEvent(int button_id) { return false; } -bool TaskbarHost::InitailizeTaskbar() { +bool TaskbarHost::InitializeTaskbar() { if (FAILED(taskbar_.CreateInstance(CLSID_TaskbarList, nullptr, CLSCTX_INPROC_SERVER)) || diff --git a/atom/browser/ui/win/taskbar_host.h b/atom/browser/ui/win/taskbar_host.h index 185b88a6b5b6..0cd5aa714fc2 100644 --- a/atom/browser/ui/win/taskbar_host.h +++ b/atom/browser/ui/win/taskbar_host.h @@ -44,8 +44,8 @@ class TaskbarHost { bool HandleThumbarButtonEvent(int button_id); private: - // Initailize the taskbar object. - bool InitailizeTaskbar(); + // Initialize the taskbar object. + bool InitializeTaskbar(); using CallbackMap = std::map; CallbackMap callback_map_;