Skip to content

Commit

Permalink
Merge pull request #2457 from brave/lint-fix-2384
Browse files Browse the repository at this point in the history
Lint fixes from #2384
  • Loading branch information
bsclifton authored May 18, 2019
2 parents 8252fc0 + ad3bc6f commit 1f4dbd1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
14 changes: 7 additions & 7 deletions browser/ui/webui/navigation_bar_data_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at http://mozilla.org/MPL/2.0/.

#ifndef BRAVE_BROWSER_UI_WEBUI_NAVIGATION_BAR_DATA_PROVIDER_H
#define BRAVE_BROWSER_UI_WEBUI_NAVIGATION_BAR_DATA_PROVIDER_H
#ifndef BRAVE_BROWSER_UI_WEBUI_NAVIGATION_BAR_DATA_PROVIDER_H_
#define BRAVE_BROWSER_UI_WEBUI_NAVIGATION_BAR_DATA_PROVIDER_H_

namespace content {
class WebUIDataSource;
}

class NavigationBarDataProvider {
public:
// Sets load-time constants on |source|. This handles a flicker-free initial
// page load (i.e. loadTimeData.getString('brToolbarSettingsTitle')).
static void Initialize(content::WebUIDataSource* source);
public:
// Sets load-time constants on |source|. This handles a flicker-free initial
// page load (i.e. loadTimeData.getString('brToolbarSettingsTitle')).
static void Initialize(content::WebUIDataSource* source);
};

#endif
#endif // BRAVE_BROWSER_UI_WEBUI_NAVIGATION_BAR_DATA_PROVIDER_H_
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ void BraveCustomizeBookmarksDataSource(content::WebUIDataSource* source) {

} // namespace

#include "../../../../../../chrome/browser/ui/webui/bookmarks/bookmarks_ui.cc"
#include "../../../../../../chrome/browser/ui/webui/bookmarks/bookmarks_ui.cc" // NOLINT

2 changes: 1 addition & 1 deletion chromium_src/chrome/browser/ui/webui/history_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ void BraveCustomizeHistoryDataSource(content::WebUIDataSource* source) {

} // namespace

#include "../../../../../chrome/browser/ui/webui/history_ui.cc"
#include "../../../../../chrome/browser/ui/webui/history_ui.cc" // NOLINT

7 changes: 6 additions & 1 deletion chromium_src/ui/base/webui/web_ui_util.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright (c) 2019 The Brave Authors
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at http://mozilla.org/MPL/2.0/.

#include "ui/base/webui/web_ui_util.h"

#include "brave/ui/webui/resources/grit/brave_webui_resources.h"
Expand All @@ -8,7 +13,7 @@
#define IDR_WEBUI_CSS_TEXT_DEFAULTS_MD_PREVIOUS IDR_WEBUI_CSS_TEXT_DEFAULTS_MD
#undef IDR_WEBUI_CSS_TEXT_DEFAULTS_MD
#define IDR_WEBUI_CSS_TEXT_DEFAULTS_MD IDR_BRAVE_WEBUI_CSS_TEXT_DEFAULTS
#include "../../../../../ui/base/webui/web_ui_util.cc"
#include "../../../../../ui/base/webui/web_ui_util.cc" // NOLINT
#undef IDR_WEBUI_CSS_TEXT_DEFAULTS_MD
#define IDR_WEBUI_CSS_TEXT_DEFAULTS_MD IDR_WEBUI_CSS_TEXT_DEFAULTS_MD_PREVIOUS

Expand Down

0 comments on commit 1f4dbd1

Please sign in to comment.