Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
auditors @bbondy
  • Loading branch information
bridiver committed Apr 3, 2017
1 parent 107ebf4 commit 1dd1847
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 24 deletions.
45 changes: 26 additions & 19 deletions atom/browser/api/atom_api_app.cc
Original file line number Diff line number Diff line change
Expand Up @@ -973,23 +973,25 @@ void App::BuildPrototype(
.SetMethod("setName", base::Bind(&atom::Browser::SetName, browser))
.SetMethod("isReady", base::Bind(&atom::Browser::is_ready, browser))
.SetMethod("addRecentDocument",
base::Bind(&atom::Browser::AddRecentDocument, browser))
base::Bind(&atom::Browser::AddRecentDocument, browser))
.SetMethod("clearRecentDocuments",
base::Bind(&atom::Browser::ClearRecentDocuments, browser))
base::Bind(&atom::Browser::ClearRecentDocuments, browser))
.SetMethod("setAppUserModelId",
base::Bind(&atom::Browser::SetAppUserModelID, browser))
base::Bind(&atom::Browser::SetAppUserModelID, browser))
.SetMethod("isDefaultProtocolClient",
base::Bind(&atom::Browser::IsDefaultProtocolClient, browser))
base::Bind(&atom::Browser::IsDefaultProtocolClient, browser))
.SetMethod("setAsDefaultProtocolClient",
base::Bind(&atom::Browser::SetAsDefaultProtocolClient, browser))
base::Bind(&atom::Browser::SetAsDefaultProtocolClient, browser))
.SetMethod("removeAsDefaultProtocolClient",
base::Bind(&atom::Browser::RemoveAsDefaultProtocolClient, browser))
.SetMethod("setBadgeCount", base::Bind(&atom::Browser::SetBadgeCount, browser))
.SetMethod("getBadgeCount", base::Bind(&atom::Browser::GetBadgeCount, browser))
base::Bind(&atom::Browser::RemoveAsDefaultProtocolClient, browser))
.SetMethod("setBadgeCount",
base::Bind(&atom::Browser::SetBadgeCount, browser))
.SetMethod("getBadgeCount",
base::Bind(&atom::Browser::GetBadgeCount, browser))
.SetMethod("getLoginItemSettings",
base::Bind(&atom::Browser::GetLoginItemSettings, browser))
base::Bind(&atom::Browser::GetLoginItemSettings, browser))
.SetMethod("setLoginItemSettings",
base::Bind(&atom::Browser::SetLoginItemSettings, browser))
base::Bind(&atom::Browser::SetLoginItemSettings, browser))
#if defined(OS_MACOSX)
.SetMethod("hide", base::Bind(&atom::Browser::Hide, browser))
.SetMethod("show", base::Bind(&atom::Browser::Show, browser))
Expand All @@ -999,7 +1001,8 @@ void App::BuildPrototype(
base::Bind(&atom::Browser::GetCurrentActivityType, browser))
#endif
#if defined(OS_WIN)
.SetMethod("setUserTasks", base::Bind(&atom::Browser::SetUserTasks, browser))
.SetMethod("setUserTasks",
base::Bind(&atom::Browser::SetUserTasks, browser))
.SetMethod("getJumpListSettings", &App::GetJumpListSettings)
.SetMethod("setJumpList", &App::SetJumpList)
#endif
Expand Down Expand Up @@ -1073,9 +1076,11 @@ void AppendSwitch(const std::string& switch_string, mate::Arguments* args) {
int DockBounce(const std::string& type) {
int request_id = -1;
if (type == "critical")
request_id = atom::Browser::Get()->DockBounce(atom::Browser::BOUNCE_CRITICAL);
request_id = atom::Browser::Get()->DockBounce(
atom::Browser::BOUNCE_CRITICAL);
else if (type == "informational")
request_id = atom::Browser::Get()->DockBounce(atom::Browser::BOUNCE_INFORMATIONAL);
request_id = atom::Browser::Get()->DockBounce(
atom::Browser::BOUNCE_INFORMATIONAL);
return request_id;
}

Expand All @@ -1100,18 +1105,20 @@ void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
auto browser = base::Unretained(atom::Browser::Get());
dict.SetMethod("dockBounce", &DockBounce);
dict.SetMethod("dockCancelBounce",
base::Bind(&atom::Browser::DockCancelBounce, browser));
base::Bind(&atom::Browser::DockCancelBounce, browser));
dict.SetMethod("dockDownloadFinished",
base::Bind(&atom::Browser::DockDownloadFinished, browser));
base::Bind(&atom::Browser::DockDownloadFinished, browser));
dict.SetMethod("dockSetBadgeText",
base::Bind(&atom::Browser::DockSetBadgeText, browser));
base::Bind(&atom::Browser::DockSetBadgeText, browser));
dict.SetMethod("dockGetBadgeText",
base::Bind(&atom::Browser::DockGetBadgeText, browser));
base::Bind(&atom::Browser::DockGetBadgeText, browser));
dict.SetMethod("dockHide", base::Bind(&atom::Browser::DockHide, browser));
dict.SetMethod("dockShow", base::Bind(&atom::Browser::DockShow, browser));
dict.SetMethod("dockIsVisible", base::Bind(&atom::Browser::DockIsVisible, browser));
dict.SetMethod("dockIsVisible",
base::Bind(&atom::Browser::DockIsVisible, browser));
dict.SetMethod("dockSetMenu", &DockSetMenu);
dict.SetMethod("dockSetIcon", base::Bind(&atom::Browser::DockSetIcon, browser));
dict.SetMethod("dockSetIcon",
base::Bind(&atom::Browser::DockSetIcon, browser));
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion atom/browser/net/asar/url_request_asar_job.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace {

void Initialize(
const base::FilePath& full_path,
std::shared_ptr<Archive>& archive,
std::shared_ptr<Archive>& archive, // NOLINT
base::FilePath* file_path,
Archive::FileInfo* file_info,
URLRequestAsarJob::JobType* type) {
Expand Down
1 change: 1 addition & 0 deletions atom/browser/net/asar/url_request_asar_job.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class URLRequestAsarJob : public net::URLRequestJob {
URLRequestAsarJob(net::URLRequest* request,
net::NetworkDelegate* network_delegate,
const scoped_refptr<base::TaskRunner> file_task_runner);

protected:
virtual ~URLRequestAsarJob();

Expand Down
6 changes: 3 additions & 3 deletions brave/browser/memory/guest_tab_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace content {
class RestoreHelper : public content::WebContentsObserver,
public content::WebContentsUserData<RestoreHelper> {
public:
RestoreHelper(content::WebContents* contents)
explicit RestoreHelper(content::WebContents* contents)
: content::WebContentsObserver(contents) {}
void ClearNeedsReload() {
static_cast<content::WebContentsImpl*>(
Expand All @@ -29,7 +29,7 @@ class RestoreHelper : public content::WebContentsObserver,
}
};

} // content
} // namespace content

DEFINE_WEB_CONTENTS_USER_DATA_KEY(content::RestoreHelper);

Expand Down Expand Up @@ -86,4 +86,4 @@ void GuestTabManager::ActiveTabChanged(content::WebContents* old_contents,
}
}

} // namespace
} // namespace memory
2 changes: 1 addition & 1 deletion brave/browser/memory/guest_tab_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ class GuestTabManager : public TabManager {

} // namespace memory

#endif // BRAVE_BROWSER_MEMORY_GUEST_T#include "chrome/browser/memory/tab_manager.h
#endif // BRAVE_BROWSER_MEMORY_GUEST_TAB_MANAGER_H_

0 comments on commit 1dd1847

Please sign in to comment.