-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency on the Rewards extension
- Loading branch information
1 parent
739adef
commit e711a51
Showing
106 changed files
with
3,133 additions
and
678 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
CANVAS_DIMENSIONS, 16, | ||
PATH_COLOR_ARGB, 0xFF, 0xFF, 0x47, 0x24, | ||
MOVE_TO, 0.03f, 14.56f, | ||
R_LINE_TO, 4.68f, -2.75f, | ||
LINE_TO, 7.94f, 6.15f, | ||
V_LINE_TO, 0.69f, | ||
R_CUBIC_TO, -0.09f, 0, -0.17f, 0.06f, -0.23f, 0.17f, | ||
LINE_TO, 3.88f, 7.57f, | ||
LINE_TO, 0.06f, 14.27f, | ||
R_CUBIC_TO, -0.06f, 0.11f, -0.07f, 0.22f, -0.03f, 0.29f, | ||
CLOSE, | ||
NEW_PATH, | ||
PATH_COLOR_ARGB, 0xFF, 0x9E, 0x1F, 0x63, | ||
MOVE_TO, 7.94f, 0.69f, | ||
V_LINE_TO, 6.15f, | ||
R_LINE_TO, 3.23f, 5.66f, | ||
R_LINE_TO, 4.68f, 2.75f, | ||
R_CUBIC_TO, 0.04f, -0.07f, 0.04f, -0.18f, -0.03f, -0.29f, | ||
R_LINE_TO, -3.83f, -6.7f, | ||
LINE_TO, 8.18f, 0.86f, | ||
R_CUBIC_TO, -0.06f, -0.11f, -0.15f, -0.17f, -0.23f, -0.17f, | ||
CLOSE, | ||
NEW_PATH, | ||
PATH_COLOR_ARGB, 0xFF, 0x66, 0x2D, 0x91, | ||
MOVE_TO, 15.85f, 14.56f, | ||
R_LINE_TO, -4.68f, -2.75f, | ||
H_LINE_TO, 4.71f, | ||
LINE_TO, 0.03f, 14.56f, | ||
R_CUBIC_TO, 0.04f, 0.08f, 0.13f, 0.12f, 0.26f, 0.12f, | ||
H_LINE_TO, 15.59f, | ||
R_CUBIC_TO, 0.13f, 0, 0.22f, -0.05f, 0.26f, -0.12f, | ||
CLOSE, | ||
NEW_PATH, | ||
PATH_COLOR_ARGB, 0xFF, 0xFF, 0xFF, 0xFF, | ||
MOVE_TO, 4.71f, 11.81f, | ||
R_H_LINE_TO, 6.46f, | ||
LINE_TO, 7.94f, 6.15f, | ||
LINE_TO, 4.71f, 11.81f, | ||
CLOSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright (c) 2022 The Brave Authors. All rights reserved. | ||
* 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 "brave/browser/brave_rewards/rewards_context_utils.h" | ||
|
||
#include "brave/browser/profiles/profile_util.h" | ||
#include "content/public/browser/browser_context.h" | ||
|
||
namespace brave_rewards { | ||
|
||
bool IsAllowedForContext(content::BrowserContext* context) { | ||
if (context && !brave::IsRegularProfile(context)) { | ||
return false; | ||
} | ||
|
||
return true; | ||
} | ||
|
||
} // namespace brave_rewards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* Copyright (c) 2022 The Brave Authors. All rights reserved. | ||
* 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/. */ | ||
|
||
#ifndef BRAVE_BROWSER_BRAVE_REWARDS_REWARDS_CONTEXT_UTILS_H_ | ||
#define BRAVE_BROWSER_BRAVE_REWARDS_REWARDS_CONTEXT_UTILS_H_ | ||
|
||
namespace content { | ||
class BrowserContext; | ||
} | ||
|
||
namespace brave_rewards { | ||
|
||
bool IsAllowedForContext(content::BrowserContext* context); | ||
|
||
} // namespace brave_rewards | ||
|
||
#endif // BRAVE_BROWSER_BRAVE_REWARDS_REWARDS_CONTEXT_UTILS_H_ |
Oops, something went wrong.