Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix master debug build failure from BraveActionAPIDependencyManager #3796

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

simonhong
Copy link
Member

@simonhong simonhong commented Oct 27, 2019

There was a missing abstract method that used only for debug build.

Fix brave/brave-browser#6628

Submitter Checklist:

Test Plan:

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@simonhong simonhong added this to the 0.73.x - Nightly milestone Oct 27, 2019
@simonhong simonhong requested a review from petemill October 27, 2019 21:51
@simonhong simonhong self-assigned this Oct 27, 2019
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
kDumpBraveActionaAPIDependencyGraphFlag)) {
base::FilePath dot_file =
static_cast<const SimpleFactoryKey*>(context)->GetPath().AppendASCII(
Copy link
Member

@petemill petemill Oct 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Context is a Browser. Can it still be cast to SimpleFactoryKey?

Otherwise I doubt we would ever use this flag as this architecture stands - there are no service dependencies so if it's any more complicated than this, we can just stub it out since we're using KeyedService here as a utility to key BraveActionAPI on Browser

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you're right. it's wrong casting. It will cause runtime crash.
Also, made it as a stub impl.

There was a missing abstract method that we missed only for debug build.
Copy link
Member

@petemill petemill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the build fix @simonhong ⚡️

@petemill petemill merged commit 46fbd67 into master Oct 28, 2019
@petemill petemill deleted the fix_build_error branch October 28, 2019 01:15
fmarier pushed a commit that referenced this pull request Oct 29, 2019
bsclifton pushed a commit that referenced this pull request Nov 4, 2019
Fix master debug build failure from BraveActionAPIDependencyManager
bsclifton pushed a commit that referenced this pull request Nov 4, 2019
Fix master debug build failure from BraveActionAPIDependencyManager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants