Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
static bool SecretKeyMatches();
nit: maybe just `FeatureKeyMatches` is fine
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
nit: maybe just `FeatureKeyMatches` is fine
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
PTAL thanks!
sky@ added for approval of new top level folder in //ash, thanks!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
static bool FeatureKeyMatches();
Based on the name, it wasn't readily obvious what this does. Consider naming something like `IsEnabled()`.
const std::string provided_key_hash = base::SHA1HashString(
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kLobsterFeatureKey));
return provided_key_hash == kLobsterKey;
This seems non-trivial. I would be inclined to cache the value. That is, use a static boolean.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Based on the name, it wasn't readily obvious what this does. Consider naming something like `IsEnabled()`.
Done
const std::string provided_key_hash = base::SHA1HashString(
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kLobsterFeatureKey));
return provided_key_hash == kLobsterKey;
This seems non-trivial. I would be inclined to cache the value. That is, use a static boolean.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
3 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: ash/lobster/lobster_controller.cc
Insertions: 6, Deletions: 5.
The diff is too large to show. Please review the diff.
```
```
The name of the file: ash/lobster/lobster_controller.h
Insertions: 1, Deletions: 1.
The diff is too large to show. Please review the diff.
```
lobster: add feature flag
BUG=b:348280305
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |