chore: disable clang-format and cpplint for impl of HandleExternalProtocol

NOLINT disables the linting error that we can't fix because its just
implementing a content API.

We also disable clang-format because it tries to format the // NOLINT
onto a new line which doesn't exactly work
This commit is contained in:
Samuel Attard 2019-03-21 21:02:40 -07:00
parent 126639875d
commit b429e6e2df
2 changed files with 7 additions and 2 deletions

View file

@ -832,7 +832,9 @@ bool AtomBrowserClient::HandleExternalProtocol(
const std::string& method,
const net::HttpRequestHeaders& headers,
network::mojom::URLLoaderFactoryRequest* factory_request,
network::mojom::URLLoaderFactory*& out_factory) {
// clang-format off
network::mojom::URLLoaderFactory*& out_factory) { // NOLINT
// clang-format on
base::PostTaskWithTraits(
FROM_HERE, {BrowserThread::UI},
base::BindOnce(&HandleExternalProtocolInUI, url, web_contents_getter,

View file

@ -174,7 +174,10 @@ class AtomBrowserClient : public content::ContentBrowserClient,
const std::string& method,
const net::HttpRequestHeaders& headers,
network::mojom::URLLoaderFactoryRequest* factory_request,
network::mojom::URLLoaderFactory*& out_factory) override;
// clang-format off
network::mojom::URLLoaderFactory*& out_factory) // NOLINT
// clang-format on
override;
private:
struct ProcessPreferences {