Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdh committed Dec 11, 2020
1 parent 454244f commit cbbc245
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions browser/resources/extensions/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ grit("resources") {
defines = chrome_grit_defines

enable_input_discovery_for_gn_analyze = false
defines += [ "SHARED_INTERMEDIATE_DIR=" +
rebase_path(root_gen_dir, root_build_dir) ]
defines +=
[ "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir) ]
extensions_gen_dir = "$root_gen_dir/brave/browser/resources/extensions"
source = "$extensions_gen_dir/brave_extensions_resources.grd"
deps = [ ":build_grd" ]
Expand Down Expand Up @@ -55,8 +55,10 @@ generate_grd("build_grd") {

preprocess_grit("preprocess") {
in_folder = "./"
out_folder = "$root_gen_dir/chrome/browser/resources/extensions/$preprocess_folder"
out_manifest = "$root_gen_dir/chrome/browser/resources/extensions/$preprocess_manifest"
out_folder =
"$root_gen_dir/chrome/browser/resources/extensions/$preprocess_folder"
out_manifest =
"$root_gen_dir/chrome/browser/resources/extensions/$preprocess_manifest"
in_files = [
"brave_overrides/extensions_detail_view.js",
"brave_overrides/index.js",
Expand All @@ -66,7 +68,8 @@ preprocess_grit("preprocess") {
preprocess_grit("preprocess_generated") {
deps = [ ":brave_item_list_more_items_module" ]
in_folder = target_gen_dir
out_folder = "$root_gen_dir/chrome/browser/resources/extensions/$preprocess_folder"
out_folder =
"$root_gen_dir/chrome/browser/resources/extensions/$preprocess_folder"
out_manifest = "$root_gen_dir/chrome/browser/resources/extensions/$preprocess_gen_manifest"
in_files = [ "brave_item_list_more_items.js" ]
}
Expand Down
2 changes: 1 addition & 1 deletion chromium_src/extensions/browser/extension_prefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bool ExtensionPrefs::IsTorEnabled(const std::string& extension_id) const {
}

void ExtensionPrefs::SetIsTorEnabled(const std::string& extension_id,
bool enabled) {
bool enabled) {
UpdateExtensionPref(extension_id, kPrefTorEnabled,
std::make_unique<base::Value>(enabled));
}
Expand Down
2 changes: 1 addition & 1 deletion chromium_src/extensions/browser/extension_prefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
IsTorEnabled(const std::string& extension_id) const; \
bool IsIncognitoEnabled

#define SetIsIncognitoEnabled \
#define SetIsIncognitoEnabled \
SetIsTorEnabled(const std::string& extension_id, bool enabled); \
void SetIsIncognitoEnabled

Expand Down

0 comments on commit cbbc245

Please sign in to comment.