Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jellefoks committed Dec 1, 2023
1 parent 23bfcda commit 5a99d6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cobalt/dom/html_element_style_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ std::string GetStyleName(::testing::TestParamInfo<const char*> info) {
return std::string(info.param);
}

std::string CamelCaseToSnakeCase(const char* camel_case) {
std::string CamelCaseToPropertyName(const char* camel_case) {
std::string snake;
for (const char* input = camel_case; *input; ++input) {
if (*input >= 'A' && *input <= 'Z') {
Expand Down Expand Up @@ -151,7 +151,7 @@ class HTMLElementStyleTestLongHandStyles

TEST_P(HTMLElementStyleTestLongHandStyles, SetStyle) {
const char* style_attribute_name = GetParam();
std::string property_name = CamelCaseToSnakeCase(style_attribute_name);
std::string property_name = CamelCaseToPropertyName(style_attribute_name);
std::string script = base::StringPrintf(
R"(
var style_name = '%s';
Expand Down Expand Up @@ -190,7 +190,7 @@ class HTMLElementStyleTestShortHandStyles

TEST_P(HTMLElementStyleTestShortHandStyles, SetStyle) {
const char* style_attribute_name = GetParam();
std::string property_name = CamelCaseToSnakeCase(style_attribute_name);
std::string property_name = CamelCaseToPropertyName(style_attribute_name);
std::string script = base::StringPrintf(
R"(
var style_name = '%s';
Expand Down
3 changes: 1 addition & 2 deletions cobalt/persistent_storage/persistent_settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ PersistentSettings::PersistentSettings(const std::string& file_name)
kSbFileMaxPath);
persistent_settings_file_ =
std::string(storage_dir.data()) + kSbFileSepString + file_name;
// LOG(INFO) << "Persistent settings file path: " <<
// persistent_settings_file_;
LOG(INFO) << "Persistent settings file path: " << persistent_settings_file_;

message_loop()->task_runner()->PostTask(
FROM_HERE, base::Bind(&PersistentSettings::InitializePrefStore,
Expand Down
2 changes: 1 addition & 1 deletion starboard/common/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void RecordFileWriteStat(int write_file_result) {

bool SbFileDeleteRecursive(const char* path, bool preserve_root) {
if (!SbFileExists(path)) {
// SB_LOG(ERROR) << "Path does not exist: '" << path << "'";
SB_LOG(ERROR) << "Path does not exist: '" << path << "'";
return false;
}

Expand Down

0 comments on commit 5a99d6b

Please sign in to comment.