Fix cpplint errors in browser_client.cc

This commit is contained in:
Adam Roben 2013-11-17 17:39:01 -05:00
parent 43f3d0acdc
commit 101a7bfa21

View file

@ -42,18 +42,23 @@ NotificationPresenter* BrowserClient::notification_presenter() {
return notification_presenter_.get(); return notification_presenter_.get();
} }
BrowserMainParts* BrowserClient::OverrideCreateBrowserMainParts(const content::MainFunctionParams&) { BrowserMainParts* BrowserClient::OverrideCreateBrowserMainParts(
const content::MainFunctionParams&) {
return new BrowserMainParts; return new BrowserMainParts;
} }
content::BrowserMainParts* BrowserClient::CreateBrowserMainParts(const content::MainFunctionParams& parameters) { content::BrowserMainParts* BrowserClient::CreateBrowserMainParts(
const content::MainFunctionParams& parameters) {
DCHECK(!browser_main_parts_); DCHECK(!browser_main_parts_);
browser_main_parts_ = OverrideCreateBrowserMainParts(parameters); browser_main_parts_ = OverrideCreateBrowserMainParts(parameters);
return browser_main_parts_; return browser_main_parts_;
} }
net::URLRequestContextGetter* BrowserClient::CreateRequestContext(content::BrowserContext* browser_context, content::ProtocolHandlerMap* protocol_handlers) { net::URLRequestContextGetter* BrowserClient::CreateRequestContext(
return static_cast<BrowserContext*>(browser_context)->CreateRequestContext(protocol_handlers); content::BrowserContext* browser_context,
content::ProtocolHandlerMap* protocol_handlers) {
auto context = static_cast<BrowserContext*>(browser_context);
return context->CreateRequestContext(protocol_handlers);
} }
void BrowserClient::ShowDesktopNotification( void BrowserClient::ShowDesktopNotification(
@ -74,11 +79,12 @@ void BrowserClient::CancelDesktopNotification(
auto presenter = notification_presenter(); auto presenter = notification_presenter();
if (!presenter) if (!presenter)
return; return;
presenter->CancelNotification(render_process_id, render_view_id, notification_id); presenter->CancelNotification(
render_process_id, render_view_id, notification_id);
} }
content::MediaObserver* BrowserClient::GetMediaObserver() { content::MediaObserver* BrowserClient::GetMediaObserver() {
return MediaCaptureDevicesDispatcher::GetInstance(); return MediaCaptureDevicesDispatcher::GetInstance();
} }
} } // namespace brightray