Fix cpplint errors in content_client.cc
This commit is contained in:
parent
6aec3006e6
commit
9306fecea8
1 changed files with 8 additions and 4 deletions
|
@ -22,19 +22,23 @@ ContentClient::~ContentClient() {
|
||||||
std::string ContentClient::GetProduct() const {
|
std::string ContentClient::GetProduct() const {
|
||||||
auto name = GetApplicationName();
|
auto name = GetApplicationName();
|
||||||
RemoveChars(name, kWhitespaceASCII, &name);
|
RemoveChars(name, kWhitespaceASCII, &name);
|
||||||
return base::StringPrintf("%s/%s", name.c_str(), GetApplicationVersion().c_str());
|
return base::StringPrintf("%s/%s",
|
||||||
|
name.c_str(), GetApplicationVersion().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ContentClient::GetUserAgent() const {
|
std::string ContentClient::GetUserAgent() const {
|
||||||
return webkit_glue::BuildUserAgentFromProduct(GetProduct());
|
return webkit_glue::BuildUserAgentFromProduct(GetProduct());
|
||||||
}
|
}
|
||||||
|
|
||||||
base::StringPiece ContentClient::GetDataResource(int resource_id, ui::ScaleFactor scale_factor) const {
|
base::StringPiece ContentClient::GetDataResource(
|
||||||
return ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(resource_id, scale_factor);
|
int resource_id, ui::ScaleFactor scale_factor) const {
|
||||||
|
return ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(
|
||||||
|
resource_id, scale_factor);
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx::Image& ContentClient::GetNativeImageNamed(int resource_id) const {
|
gfx::Image& ContentClient::GetNativeImageNamed(int resource_id) const {
|
||||||
return ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id);
|
return ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
|
||||||
|
resource_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace brightray
|
} // namespace brightray
|
||||||
|
|
Loading…
Reference in a new issue