Force Enhanced Bookmark to be enabled if command line flags are set true
kEnhancedBookmarksExperiment is used by android intrumentation tests to
force enhanced bookmark feature to be enabled.
https://codereview.chromium.org/1009673002 introduced a regression that
the even if the flag is set to be true, it does not take effect. This CL
fixes it.
BUG=468106
Committed: https://crrev.com/47c18b773aa75bdae2f4b39750534119bc3055ab
Cr-Commit-Position: refs/heads/master@{#321429}
Hi sky@, could you please take a look? Also, maybe we can make danduong@ or ...
5 years, 9 months ago
(2015-03-17 23:31:39 UTC)
#5
Hi sky@, could you please take a look?
Also, maybe we can make danduong@ or wittman@ or kkimabls@ or noyau@ the owner
of this file (enhanced_bookmarks_features.cc and enhanced_bookmarks_features.h),
so that we can spam you less. :)
sky
LGTM I'm fine with updating owners too
5 years, 9 months ago
(2015-03-18 00:01:50 UTC)
#6
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc File chrome/browser/bookmarks/enhanced_bookmarks_features.cc (right): https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc#newcode80 chrome/browser/bookmarks/enhanced_bookmarks_features.cc:80: base::android::SdkVersion::SDK_VERSION_ICE_CREAM_SANDWICH_MR1; Unless I misunderstand this will skew the finch ...
5 years, 9 months ago
(2015-03-18 13:32:14 UTC)
#8
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc File chrome/browser/bookmarks/enhanced_bookmarks_features.cc (right): https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc#newcode73 chrome/browser/bookmarks/enhanced_bookmarks_features.cc:73: #if defined(OS_ANDROID) Unless I'm reading this wrong, this is ...
5 years, 9 months ago
(2015-03-18 15:42:00 UTC)
#10
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmark...
File chrome/browser/bookmarks/enhanced_bookmarks_features.cc (right):
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmark...
chrome/browser/bookmarks/enhanced_bookmarks_features.cc:73: #if
defined(OS_ANDROID)
Unless I'm reading this wrong, this is an Android only function, so this
shouldn't be needed.
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmark...
chrome/browser/bookmarks/enhanced_bookmarks_features.cc:79: opt_out =
base::android::BuildInfo::GetInstance()->sdk_int() <
this needs to be |-ed otherwise the opt_out above will never be used.
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmark...
chrome/browser/bookmarks/enhanced_bookmarks_features.cc:80:
base::android::SdkVersion::SDK_VERSION_ICE_CREAM_SANDWICH_MR1;
On 2015/03/18 13:32:14, noyau wrote:
> Unless I misunderstand this will skew the finch experiment: opting out like
this
> will still report those users to be part of the experiment and will lead to
> incorrect data.
>
> The opt-in is fine, as it is based on a command line flag which could be
> detected by finch.
We just need to make sure this ICS logic is always read before attempting to
query
whether we are in the finch group or not.
A client will only report they are in the finch group if they actually ask finch
what group they are in. If we early exit on ICS, then they'll never ask what
group
and will not mess with the data.
I have no idea if this is actually done early enough though, so we'd need to
check
that.
danduong
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc File chrome/browser/bookmarks/enhanced_bookmarks_features.cc (left): https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc#oldcode47 chrome/browser/bookmarks/enhanced_bookmarks_features.cc:47: This might still be needed for non-Android https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc File ...
5 years, 9 months ago
(2015-03-18 17:51:41 UTC)
#11
5 years, 9 months ago
(2015-03-18 23:21:59 UTC)
#14
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmark...
File chrome/browser/bookmarks/enhanced_bookmarks_features.cc (right):
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmark...
chrome/browser/bookmarks/enhanced_bookmarks_features.cc:40: #if
defined(OS_ANDROID)
On 2015/03/18 17:51:41, danduong wrote:
> Shouldn't this be IOS too?
Probably, but we do not compile this file for iOS in Chromium: The goal is that
none of the code in chrome/ should be used on iOS. For now the iOS mirror this
file with an additional test in the ios repository (which is getting smaller by
the day). Ideally this file should loose all its chrome and extension
dependencies and move to components where it could be properly shared. Now that
finch moved into components, this should probably be sone sooner rather than
later actually.
danduong
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc File chrome/browser/bookmarks/enhanced_bookmarks_features.cc (right): https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc#newcode40 chrome/browser/bookmarks/enhanced_bookmarks_features.cc:40: #if defined(OS_ANDROID) Thanks for the clarification. I didn't realize ...
5 years, 9 months ago
(2015-03-18 23:28:56 UTC)
#15
5 years, 9 months ago
(2015-03-19 12:22:26 UTC)
#16
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmark...
File chrome/browser/bookmarks/enhanced_bookmarks_features.cc (right):
https://codereview.chromium.org/1017913002/diff/40001/chrome/browser/bookmark...
chrome/browser/bookmarks/enhanced_bookmarks_features.cc:40: #if
defined(OS_ANDROID)
On 2015/03/18 23:28:56, danduong wrote:
> Thanks for the clarification. I didn't realize that you guys mirrored this.
That's why I have a watch on this file, because when one of you guys does
anything to this file someone on iOS land has to figure out what the heck
happened and make it work for iOS as well.
So, yes, plea: move as much stuff as possible to components, where we could use
it in iOS, and use tests to make sure the changes don't introduce iOS
regressions using Chromium bots…
danduong
lgtm https://codereview.chromium.org/1017913002/diff/80001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc File chrome/browser/bookmarks/enhanced_bookmarks_features.cc (right): https://codereview.chromium.org/1017913002/diff/80001/chrome/browser/bookmarks/enhanced_bookmarks_features.cc#newcode23 chrome/browser/bookmarks/enhanced_bookmarks_features.cc:23: #include "extensions/common/features/feature_provider.h" can you clean up the includes ...
5 years, 9 months ago
(2015-03-19 18:51:18 UTC)
#17
https://codereview.chromium.org/1017913002/diff/80001/chrome/browser/bookmarks/enhanced_bookmarks_features.h File chrome/browser/bookmarks/enhanced_bookmarks_features.h (right): https://codereview.chromium.org/1017913002/diff/80001/chrome/browser/bookmarks/enhanced_bookmarks_features.h#newcode16 chrome/browser/bookmarks/enhanced_bookmarks_features.h:16: bool GetBookmarksExperimentExtensionID(std::string* extension_id); this function can move inside the ...
5 years, 9 months ago
(2015-03-19 18:56:35 UTC)
#18
Issue 1017913002: Force Enhanced Bookmark to be enabled if command line flags are set true
(Closed)
Created 5 years, 9 months ago by Ian Wen
Modified 5 years, 9 months ago
Reviewers: Mike Wittman, danduong, sky, noyau (Ping after 24h), Ted C
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 15