chore: cleanup some typos in comments (#25770)
This commit is contained in:
parent
183e92a5ae
commit
b194030a34
31 changed files with 38 additions and 38 deletions
|
@ -115,7 +115,7 @@ void DevToolsManagerDelegate::HandleCommand(
|
|||
// protocol UberDispatcher and generating proper protocol handlers.
|
||||
// Since we only have one method and it is supposed to close Electron,
|
||||
// we don't need to add this complexity. Should we decide to support
|
||||
// metohds like Browser.setWindowBounds, we'll need to do it though.
|
||||
// methods like Browser.setWindowBounds, we'll need to do it though.
|
||||
base::PostTask(FROM_HERE, {content::BrowserThread::UI},
|
||||
base::BindOnce([]() { Browser::Get()->Quit(); }));
|
||||
return;
|
||||
|
|
|
@ -136,7 +136,7 @@ DialogResult ShowTaskDialogUTF16(NativeWindow* parent,
|
|||
}
|
||||
}
|
||||
|
||||
// If "detail" is empty then don't make message hilighted.
|
||||
// If "detail" is empty then don't make message highlighted.
|
||||
if (detail.empty()) {
|
||||
config.pszContent = message.c_str();
|
||||
} else {
|
||||
|
|
|
@ -129,7 +129,7 @@ views::MenuItemView* MenuDelegate::GetSiblingMenu(
|
|||
bool switch_in_progress = !!button_to_open_;
|
||||
// Always update target to open.
|
||||
button_to_open_ = button;
|
||||
// Switching menu asyncnously to avoid crash.
|
||||
// Switching menu asynchronously to avoid crash.
|
||||
if (!switch_in_progress) {
|
||||
base::PostTask(FROM_HERE, {content::BrowserThread::UI},
|
||||
base::BindOnce(&views::MenuRunner::Cancel,
|
||||
|
|
|
@ -67,7 +67,7 @@ bool TaskbarHost::SetThumbarButtons(HWND window,
|
|||
callback_map_.clear();
|
||||
|
||||
// The number of buttons in thumbar can not be changed once it is created,
|
||||
// so we have to claim kMaxButtonsCount buttons initialy in case users add
|
||||
// so we have to claim kMaxButtonsCount buttons initially in case users add
|
||||
// more buttons later.
|
||||
base::win::ScopedHICON icons[kMaxButtonsCount] = {};
|
||||
THUMBBUTTON thumb_buttons[kMaxButtonsCount] = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue