CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, James Hawkins, Jeremy Klein
Create TetherService, a TetherAllowed pref, and use DependencyManager for RegisterProfilePrefs calls.
TetherService dynamically starts and stops Tether when prefs::kTetherAllowed changes value (from policy changing). This is expected from policy settings in Chrome. Please see: https://sites.google.com/a/chromium.org/dev/developers/how-tos/enterprise/adding-new-policies.
This CL also tweaks EasyUnlockServiceFactory and ChromeCryptAuthServiceFactory to call RegisterProfilePrefs on their respective services. These calls are automagically handled by DependencyManager: it ensures that the RegisterProfilePrefs calls are made in the correct order and only once per context.
A subsequent CL will come after this one that actually creates the enterprise policy for Tether, and maps to prefs::kTetherAllowed.
BUG=710174
Review-Url: https://codereview.chromium.org/2819713002
Cr-Commit-Position: refs/heads/master@{#466702}
Committed: https://chromium.googlesource.com/chromium/src/+/8d01f3ac9dad3f4833d868e253989ed88b705d1c
Description was changed from ========== Create TetherService, a TetherAllowed pref, and use DependencyManager for RegisterProfilePrefs ...
3 years, 8 months ago
(2017-04-13 23:16:14 UTC)
#1
Description was changed from
==========
Create TetherService, a TetherAllowed pref, and use DependencyManager for
RegisterProfilePrefs calls.
BUG=710174
==========
to
==========
Create TetherService, a TetherAllowed pref, and use DependencyManager for
RegisterProfilePrefs calls.
TetherService dynamically starts and stops Tether when prefs::kTetherAllowed
changes value (from policy changing). This is expected from policy settings in
Chrome. Please see:
https://sites.google.com/a/chromium.org/dev/developers/how-tos/enterprise/add....
This CL also tweaks EasyUnlockServiceFactory and ChromeCryptAuthServiceFactory
to call RegisterProfilePrefs on their respective services. These calls are
automagically handled by DependencyManager: it ensures that the
RegisterProfilePrefs calls are made in the correct order and only once per
context.
A subsequent CL will come after this one that actually creates the enterprise
policy for Tether, and maps to prefs::kTetherAllowed.
BUG=710174
==========
Description was changed from ========== Create TetherService, a TetherAllowed pref, and use DependencyManager for RegisterProfilePrefs ...
3 years, 8 months ago
(2017-04-13 23:18:07 UTC)
#3
Description was changed from
==========
Create TetherService, a TetherAllowed pref, and use DependencyManager for
RegisterProfilePrefs calls.
TetherService dynamically starts and stops Tether when prefs::kTetherAllowed
changes value (from policy changing). This is expected from policy settings in
Chrome. Please see:
https://sites.google.com/a/chromium.org/dev/developers/how-tos/enterprise/add....
This CL also tweaks EasyUnlockServiceFactory and ChromeCryptAuthServiceFactory
to call RegisterProfilePrefs on their respective services. These calls are
automagically handled by DependencyManager: it ensures that the
RegisterProfilePrefs calls are made in the correct order and only once per
context.
A subsequent CL will come after this one that actually creates the enterprise
policy for Tether, and maps to prefs::kTetherAllowed.
BUG=710174
==========
to
==========
Create TetherService, a TetherAllowed pref, and use DependencyManager for
RegisterProfilePrefs calls.
TetherService dynamically starts and stops Tether when prefs::kTetherAllowed
changes value (from policy changing). This is expected from policy settings in
Chrome. Please see:
https://sites.google.com/a/chromium.org/dev/developers/how-tos/enterprise/add....
This CL also tweaks EasyUnlockServiceFactory and ChromeCryptAuthServiceFactory
to call RegisterProfilePrefs on their respective services. These calls are
automagically handled by DependencyManager: it ensures that the
RegisterProfilePrefs calls are made in the correct order and only once per
context.
A subsequent CL will come after this one that actually creates the enterprise
policy for Tether, and maps to prefs::kTetherAllowed.
battre@: Adding for browser_prefs.cc. Please let me know if I've done what you
suggested in https://codereview.chromium.org/2805833002/#msg16.
erg@: Adding for chrome_browser_main_extra_parts_profiles.cc.
BUG=710174
==========
Ryan Hansberry
3 years, 8 months ago
(2017-04-13 23:19:49 UTC)
#4
Kyle Horimoto
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (left): https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc#oldcode1947 chrome/browser/chromeos/login/session/user_session_manager.cc:1947: if (base::CommandLine::ForCurrentProcess()->HasSwitch( When will Shutdown() be called now? Are ...
3 years, 8 months ago
(2017-04-14 00:15:43 UTC)
#5
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/tether/tether_service.cc File chrome/browser/tether/tether_service.cc (right): https://codereview.chromium.org/2819713002/diff/1/chrome/browser/tether/tether_service.cc#newcode71 chrome/browser/tether/tether_service.cc:71: if (!profile_->GetPrefs()->GetBoolean(prefs::kTetherAllowed)) Just return profile_->GetPrefs()->GetBoolean(prefs::kTetherAllowed) instead of using if/else. ...
3 years, 8 months ago
(2017-04-14 01:08:27 UTC)
#6
3 years, 8 months ago
(2017-04-14 17:34:49 UTC)
#8
profiles lgtm
Kyle Horimoto
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (left): https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc#oldcode1947 chrome/browser/chromeos/login/session/user_session_manager.cc:1947: if (base::CommandLine::ForCurrentProcess()->HasSwitch( On 2017/04/14 02:34:10, Ryan Hansberry wrote: > ...
3 years, 8 months ago
(2017-04-14 18:39:20 UTC)
#9
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/log...
File chrome/browser/chromeos/login/session/user_session_manager.cc (left):
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/log...
chrome/browser/chromeos/login/session/user_session_manager.cc:1947: if
(base::CommandLine::ForCurrentProcess()->HasSwitch(
On 2017/04/14 02:34:10, Ryan Hansberry wrote:
> On 2017/04/14 00:15:43, Kyle Horimoto wrote:
> > When will Shutdown() be called now? Are we sure that it's called at the
right
> > time?
>
> Initializer::Shutdown() is now called when either Tether is disallowed because
> of a policy change, or when TetherService::Shutdown() is called (that is
called
> automagically by Chrome, see [1]).
>
> Additionally, in the future, Initializer::Shutdown will be called when Tether
is
> disabled (e.g. the user flips the pref in Settings).
>
> 1.
>
https://cs.chromium.org/chromium/src/components/keyed_service/core/keyed_serv...
Have you confirmed that Initializer::Shutdown() will be called before
NetworkHandler::Shutdown() and MessageCenter::Shutdown()? This needs to happen
to ensure that we don't crash when the user logs out.
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/tether/tethe...
File chrome/browser/tether/tether_service.cc (right):
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/tether/tethe...
chrome/browser/tether/tether_service.cc:71: if
(!profile_->GetPrefs()->GetBoolean(prefs::kTetherAllowed))
On 2017/04/14 02:34:10, Ryan Hansberry wrote:
> On 2017/04/14 01:08:26, Kyle Horimoto wrote:
> > Just return profile_->GetPrefs()->GetBoolean(prefs::kTetherAllowed) instead
of
> > using if/else.
>
> Done.
I think you forgot to upload your changes :)
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/tether/tethe...
chrome/browser/tether/tether_service.cc:86: void TetherService::OnPrefsChanged()
{
On 2017/04/14 02:34:10, Ryan Hansberry wrote:
> On 2017/04/14 00:15:43, Kyle Horimoto wrote:
> > What about if tethering is disabled, then reenabled? IsAllowed() will still
> > return false since shut_down_ == true.
>
> Not sure I follow -- are you mixing up the Service being shutdown and
> Initializer being shutdown? Initializer can be shutdown and re-initialized
many
> times within the lifetime of this service.
Yep, I was mixing it up. Thanks for the explanation!
Ryan Hansberry
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (left): https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc#oldcode1947 chrome/browser/chromeos/login/session/user_session_manager.cc:1947: if (base::CommandLine::ForCurrentProcess()->HasSwitch( On 2017/04/14 18:39:20, Kyle Horimoto wrote: > ...
3 years, 8 months ago
(2017-04-18 17:59:05 UTC)
#10
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/log...
File chrome/browser/chromeos/login/session/user_session_manager.cc (left):
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/log...
chrome/browser/chromeos/login/session/user_session_manager.cc:1947: if
(base::CommandLine::ForCurrentProcess()->HasSwitch(
On 2017/04/14 18:39:20, Kyle Horimoto wrote:
> On 2017/04/14 02:34:10, Ryan Hansberry wrote:
> > On 2017/04/14 00:15:43, Kyle Horimoto wrote:
> > > When will Shutdown() be called now? Are we sure that it's called at the
> right
> > > time?
> >
> > Initializer::Shutdown() is now called when either Tether is disallowed
because
> > of a policy change, or when TetherService::Shutdown() is called (that is
> called
> > automagically by Chrome, see [1]).
> >
> > Additionally, in the future, Initializer::Shutdown will be called when
Tether
> is
> > disabled (e.g. the user flips the pref in Settings).
> >
> > 1.
> >
>
https://cs.chromium.org/chromium/src/components/keyed_service/core/keyed_serv...
>
> Have you confirmed that Initializer::Shutdown() will be called before
> NetworkHandler::Shutdown() and MessageCenter::Shutdown()? This needs to happen
> to ensure that we don't crash when the user logs out.
Good catch. Added a call to TetherService::Shutdown here.
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/tether/tethe...
File chrome/browser/tether/tether_service.cc (right):
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/tether/tethe...
chrome/browser/tether/tether_service.cc:71: if
(!profile_->GetPrefs()->GetBoolean(prefs::kTetherAllowed))
On 2017/04/14 18:39:20, Kyle Horimoto wrote:
> On 2017/04/14 02:34:10, Ryan Hansberry wrote:
> > On 2017/04/14 01:08:26, Kyle Horimoto wrote:
> > > Just return profile_->GetPrefs()->GetBoolean(prefs::kTetherAllowed)
instead
> of
> > > using if/else.
> >
> > Done.
>
> I think you forgot to upload your changes :)
Accidentally uploaded them to the CL depending on this, oops.
Tim Song
lgtm
3 years, 8 months ago
(2017-04-18 19:08:44 UTC)
#11
lgtm
Ryan Hansberry
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (left): https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc#oldcode1947 chrome/browser/chromeos/login/session/user_session_manager.cc:1947: if (base::CommandLine::ForCurrentProcess()->HasSwitch( On 2017/04/18 17:59:05, Ryan Hansberry wrote: > ...
3 years, 8 months ago
(2017-04-18 21:59:53 UTC)
#12
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/log...
File chrome/browser/chromeos/login/session/user_session_manager.cc (left):
https://codereview.chromium.org/2819713002/diff/1/chrome/browser/chromeos/log...
chrome/browser/chromeos/login/session/user_session_manager.cc:1947: if
(base::CommandLine::ForCurrentProcess()->HasSwitch(
On 2017/04/18 17:59:05, Ryan Hansberry wrote:
> On 2017/04/14 18:39:20, Kyle Horimoto wrote:
> > On 2017/04/14 02:34:10, Ryan Hansberry wrote:
> > > On 2017/04/14 00:15:43, Kyle Horimoto wrote:
> > > > When will Shutdown() be called now? Are we sure that it's called at the
> > right
> > > > time?
> > >
> > > Initializer::Shutdown() is now called when either Tether is disallowed
> because
> > > of a policy change, or when TetherService::Shutdown() is called (that is
> > called
> > > automagically by Chrome, see [1]).
> > >
> > > Additionally, in the future, Initializer::Shutdown will be called when
> Tether
> > is
> > > disabled (e.g. the user flips the pref in Settings).
> > >
> > > 1.
> > >
> >
>
https://cs.chromium.org/chromium/src/components/keyed_service/core/keyed_serv...
> >
> > Have you confirmed that Initializer::Shutdown() will be called before
> > NetworkHandler::Shutdown() and MessageCenter::Shutdown()? This needs to
happen
> > to ensure that we don't crash when the user logs out.
>
> Good catch. Added a call to TetherService::Shutdown here.
Actually, this code was correct the first time. I have verified that
NetworkHandler::Shutdown() and MessageCenter::Shutdown() are called before
TetherService::Shutdown().
Kyle Horimoto
3 years, 8 months ago
(2017-04-18 22:03:37 UTC)
#13
Kyle Horimoto
lgtm
3 years, 8 months ago
(2017-04-18 22:03:44 UTC)
#14
lgtm
battre
\o/ LGTM Thanks. https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode1230 chrome/browser/chromeos/login/session/user_session_manager.cc:1230: if (tether_service) { nit: {} are ...
3 years, 8 months ago
(2017-04-19 08:43:30 UTC)
#15
Can you remove messages to reviewers from the CL description?
3 years, 8 months ago
(2017-04-19 19:01:43 UTC)
#19
Can you remove messages to reviewers from the CL description?
Lei Zhang
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn#newcode3578 chrome/browser/BUILD.gn:3578: "tether/tether_service.cc", Is this going to build on Windows/Mac/Linux too? ...
3 years, 8 months ago
(2017-04-19 19:13:17 UTC)
#20
Description was changed from ========== Create TetherService, a TetherAllowed pref, and use DependencyManager for RegisterProfilePrefs ...
3 years, 8 months ago
(2017-04-20 16:56:03 UTC)
#21
Description was changed from
==========
Create TetherService, a TetherAllowed pref, and use DependencyManager for
RegisterProfilePrefs calls.
TetherService dynamically starts and stops Tether when prefs::kTetherAllowed
changes value (from policy changing). This is expected from policy settings in
Chrome. Please see:
https://sites.google.com/a/chromium.org/dev/developers/how-tos/enterprise/add....
This CL also tweaks EasyUnlockServiceFactory and ChromeCryptAuthServiceFactory
to call RegisterProfilePrefs on their respective services. These calls are
automagically handled by DependencyManager: it ensures that the
RegisterProfilePrefs calls are made in the correct order and only once per
context.
A subsequent CL will come after this one that actually creates the enterprise
policy for Tether, and maps to prefs::kTetherAllowed.
battre@: Adding for browser_prefs.cc. Please let me know if I've done what you
suggested in https://codereview.chromium.org/2805833002/#msg16.
erg@: Adding for chrome_browser_main_extra_parts_profiles.cc.
BUG=710174
==========
to
==========
Create TetherService, a TetherAllowed pref, and use DependencyManager for
RegisterProfilePrefs calls.
TetherService dynamically starts and stops Tether when prefs::kTetherAllowed
changes value (from policy changing). This is expected from policy settings in
Chrome. Please see:
https://sites.google.com/a/chromium.org/dev/developers/how-tos/enterprise/add....
This CL also tweaks EasyUnlockServiceFactory and ChromeCryptAuthServiceFactory
to call RegisterProfilePrefs on their respective services. These calls are
automagically handled by DependencyManager: it ensures that the
RegisterProfilePrefs calls are made in the correct order and only once per
context.
A subsequent CL will come after this one that actually creates the enterprise
policy for Tether, and maps to prefs::kTetherAllowed.
BUG=710174
==========
Ryan Hansberry
Removed notes to reviewers in CL description. https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn#newcode3578 chrome/browser/BUILD.gn:3578: "tether/tether_service.cc", On ...
3 years, 8 months ago
(2017-04-20 17:22:32 UTC)
#22
Not sure why you are not running tryjobs. I will kick off a run for ...
3 years, 8 months ago
(2017-04-20 19:17:14 UTC)
#23
Not sure why you are not running tryjobs. I will kick off a run for you.
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn
File chrome/browser/BUILD.gn (right):
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn...
chrome/browser/BUILD.gn:3578: "tether/tether_service.cc",
On 2017/04/20 17:22:32, Ryan Hansberry wrote:
> On 2017/04/19 19:13:17, Lei Zhang wrote:
> > Is this going to build on Windows/Mac/Linux too? You should run some try
jobs
> > when you get closer to be able to submit.
>
> This is only intended to run on ChromeOS.
So why is not in a ChromeOS only source list? (see line 3199 where this section
starts)
Lei Zhang
The CQ bit was checked by thestig@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-20 19:17:23 UTC)
#24
Dry run: Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/58239)
3 years, 8 months ago
(2017-04-20 19:30:30 UTC)
#29
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn#newcode3578 chrome/browser/BUILD.gn:3578: "tether/tether_service.cc", On 2017/04/20 19:24:30, Lei Zhang wrote: > On ...
3 years, 8 months ago
(2017-04-20 22:08:09 UTC)
#30
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn
File chrome/browser/BUILD.gn (right):
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn...
chrome/browser/BUILD.gn:3578: "tether/tether_service.cc",
On 2017/04/20 19:24:30, Lei Zhang wrote:
> On 2017/04/20 17:22:32, Ryan Hansberry wrote:
> > On 2017/04/19 19:13:17, Lei Zhang wrote:
> > > Is this going to build on Windows/Mac/Linux too? You should run some try
> jobs
> > > when you get closer to be able to submit.
> >
> > This is only intended to run on ChromeOS.
>
> Another question - is this ever going to be used on Windows/Mac/Linux? If not,
> you can leave it here, but rename the files to have the _chromeos postfix.
e.g.
> tether/tether_service_chromeos.cc. Then it won't be built on other platforms.
I've moved these under a is_chromeos source list. Let me know if that's
incorrect (And there are no plans to expand this to platforms other than
ChromeOS).
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/tether/O...
File chrome/browser/tether/OWNERS (right):
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/tether/O...
chrome/browser/tether/OWNERS:2: hansberry@chromium.org
On 2017/04/20 19:26:21, Lei Zhang wrote:
> On 2017/04/20 17:22:32, Ryan Hansberry wrote:
> > On 2017/04/19 19:13:17, Lei Zhang wrote:
> > > Do you have a bug component? If so, add a COMPONENT: line? See other
OWNERS
> > file
> > > for examples.
> >
> > We don't have a bug component. :/
>
> Do you plan to? What component will people file bugs under? You can always add
> COMPONENT: later.
Yes, we plan to. I will add a COMPONENT: line when we have one.
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/tether/t...
File chrome/browser/tether/tether_service.h (right):
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/tether/t...
chrome/browser/tether/tether_service.h:17: // namespace user_prefs {
On 2017/04/20 19:24:30, Lei Zhang wrote:
> On 2017/04/20 17:22:32, Ryan Hansberry wrote:
> > On 2017/04/19 19:13:17, Lei Zhang wrote:
> > > I think you should uncomment this and remove the #include.
> >
> > My bad, removed.
>
> Why not keep the forward decl and move the pref_registry_syncable.h #include
> into the .cc file?
>
https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++.md...
Oops. Fixed.
Ryan Hansberry
The CQ bit was checked by hansberry@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-20 22:08:35 UTC)
#31
Still need to upload a new patch set. https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn#newcode3578 chrome/browser/BUILD.gn:3578: "tether/tether_service.cc", ...
3 years, 8 months ago
(2017-04-20 22:11:43 UTC)
#33
Still need to upload a new patch set.
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn
File chrome/browser/BUILD.gn (right):
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn...
chrome/browser/BUILD.gn:3578: "tether/tether_service.cc",
On 2017/04/20 22:08:09, Ryan Hansberry wrote:
> On 2017/04/20 19:24:30, Lei Zhang wrote:
> > On 2017/04/20 17:22:32, Ryan Hansberry wrote:
> > > On 2017/04/19 19:13:17, Lei Zhang wrote:
> > > > Is this going to build on Windows/Mac/Linux too? You should run some try
> > jobs
> > > > when you get closer to be able to submit.
> > >
> > > This is only intended to run on ChromeOS.
> >
> > Another question - is this ever going to be used on Windows/Mac/Linux? If
not,
> > you can leave it here, but rename the files to have the _chromeos postfix.
> e.g.
> > tether/tether_service_chromeos.cc. Then it won't be built on other
platforms.
>
> I've moved these under a is_chromeos source list. Let me know if that's
> incorrect (And there are no plans to expand this to platforms other than
> ChromeOS).
Why not just rename the file so it is immediately obvious that the file is
platform specific?
Lei Zhang
On 2017/04/20 22:11:43, Lei Zhang wrote: > Why not just rename the file so it ...
3 years, 8 months ago
(2017-04-20 22:13:03 UTC)
#34
On 2017/04/20 22:11:43, Lei Zhang wrote:
> Why not just rename the file so it is immediately obvious that the file is
> platform specific?
Another possibility is to move c/b/tether into chrome/browser/chromeos.
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 8 months ago
(2017-04-20 22:18:34 UTC)
#35
Dry run: Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/212685)
3 years, 8 months ago
(2017-04-20 22:18:35 UTC)
#36
Sorry, forgot to upload changelist. https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn#newcode3578 chrome/browser/BUILD.gn:3578: "tether/tether_service.cc", On 2017/04/20 22:11:43, ...
3 years, 8 months ago
(2017-04-20 22:26:45 UTC)
#37
Sorry, forgot to upload changelist.
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn
File chrome/browser/BUILD.gn (right):
https://codereview.chromium.org/2819713002/diff/60001/chrome/browser/BUILD.gn...
chrome/browser/BUILD.gn:3578: "tether/tether_service.cc",
On 2017/04/20 22:11:43, Lei Zhang wrote:
> On 2017/04/20 22:08:09, Ryan Hansberry wrote:
> > On 2017/04/20 19:24:30, Lei Zhang wrote:
> > > On 2017/04/20 17:22:32, Ryan Hansberry wrote:
> > > > On 2017/04/19 19:13:17, Lei Zhang wrote:
> > > > > Is this going to build on Windows/Mac/Linux too? You should run some
try
> > > jobs
> > > > > when you get closer to be able to submit.
> > > >
> > > > This is only intended to run on ChromeOS.
> > >
> > > Another question - is this ever going to be used on Windows/Mac/Linux? If
> not,
> > > you can leave it here, but rename the files to have the _chromeos postfix.
> > e.g.
> > > tether/tether_service_chromeos.cc. Then it won't be built on other
> platforms.
> >
> > I've moved these under a is_chromeos source list. Let me know if that's
> > incorrect (And there are no plans to expand this to platforms other than
> > ChromeOS).
>
> Why not just rename the file so it is immediately obvious that the file is
> platform specific?
What's the preferred situation:
1) Place tether_service_* under the non-Android source set it was with the
suffix _chromeos
2) Place tether_service_* under this is_chromeos source set without the suffix
_chromeos
3) Place tether_service_* under this is_chromeos source set and use the suffix
_chromeos
4) Place tether_service_* files under chrome/browser/chromeos
?
Lei Zhang
On 2017/04/20 22:26:45, Ryan Hansberry wrote: > What's the preferred situation: > > 1) Place ...
3 years, 8 months ago
(2017-04-20 22:45:12 UTC)
#38
On 2017/04/20 22:26:45, Ryan Hansberry wrote:
> What's the preferred situation:
>
> 1) Place tether_service_* under the non-Android source set it was with the
> suffix _chromeos
> 2) Place tether_service_* under this is_chromeos source set without the suffix
> _chromeos
> 3) Place tether_service_* under this is_chromeos source set and use the suffix
> _chromeos
> 4) Place tether_service_* files under chrome/browser/chromeos
My vote is for (4) if chrome/browser/chromeos/OWNERS is happy with that.
3 years, 8 months ago
(2017-04-21 05:41:54 UTC)
#45
Dry run: This issue passed the CQ dry run.
stevenjb
lgtm w/ one suggestion https://codereview.chromium.org/2819713002/diff/140001/chrome/browser/chromeos/tether/tether_service.cc File chrome/browser/chromeos/tether/tether_service.cc (right): https://codereview.chromium.org/2819713002/diff/140001/chrome/browser/chromeos/tether/tether_service.cc#newcode84 chrome/browser/chromeos/tether/tether_service.cc:84: chromeos::switches::kEnableTether)) { We should just ...
3 years, 8 months ago
(2017-04-21 20:09:17 UTC)
#46
CQ is committing da patch. Bot data: {"patchset_id": 160001, "attempt_start_ts": 1493056399287510, "parent_rev": "93bf8a7466ca3d2c6297f1e40e1f5be17c7b006a", "commit_rev": "8d01f3ac9dad3f4833d868e253989ed88b705d1c"}
3 years, 8 months ago
(2017-04-24 18:58:52 UTC)
#51
CQ is committing da patch.
Bot data: {"patchset_id": 160001, "attempt_start_ts": 1493056399287510,
"parent_rev": "93bf8a7466ca3d2c6297f1e40e1f5be17c7b006a", "commit_rev":
"8d01f3ac9dad3f4833d868e253989ed88b705d1c"}
commit-bot: I haz the power
Description was changed from ========== Create TetherService, a TetherAllowed pref, and use DependencyManager for RegisterProfilePrefs ...
3 years, 8 months ago
(2017-04-24 18:59:08 UTC)
#52
Message was sent while issue was closed.
Description was changed from
==========
Create TetherService, a TetherAllowed pref, and use DependencyManager for
RegisterProfilePrefs calls.
TetherService dynamically starts and stops Tether when prefs::kTetherAllowed
changes value (from policy changing). This is expected from policy settings in
Chrome. Please see:
https://sites.google.com/a/chromium.org/dev/developers/how-tos/enterprise/add....
This CL also tweaks EasyUnlockServiceFactory and ChromeCryptAuthServiceFactory
to call RegisterProfilePrefs on their respective services. These calls are
automagically handled by DependencyManager: it ensures that the
RegisterProfilePrefs calls are made in the correct order and only once per
context.
A subsequent CL will come after this one that actually creates the enterprise
policy for Tether, and maps to prefs::kTetherAllowed.
BUG=710174
==========
to
==========
Create TetherService, a TetherAllowed pref, and use DependencyManager for
RegisterProfilePrefs calls.
TetherService dynamically starts and stops Tether when prefs::kTetherAllowed
changes value (from policy changing). This is expected from policy settings in
Chrome. Please see:
https://sites.google.com/a/chromium.org/dev/developers/how-tos/enterprise/add....
This CL also tweaks EasyUnlockServiceFactory and ChromeCryptAuthServiceFactory
to call RegisterProfilePrefs on their respective services. These calls are
automagically handled by DependencyManager: it ensures that the
RegisterProfilePrefs calls are made in the correct order and only once per
context.
A subsequent CL will come after this one that actually creates the enterprise
policy for Tether, and maps to prefs::kTetherAllowed.
BUG=710174
Review-Url: https://codereview.chromium.org/2819713002
Cr-Commit-Position: refs/heads/master@{#466702}
Committed:
https://chromium.googlesource.com/chromium/src/+/8d01f3ac9dad3f4833d868e25398...
==========
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/8d01f3ac9dad3f4833d868e253989ed88b705d1c
3 years, 8 months ago
(2017-04-24 18:59:10 UTC)
#53
Issue 2819713002: Create TetherService, a TetherAllowed pref, and use DependencyManager for RegisterProfilePrefs call…
(Closed)
Created 3 years, 8 months ago by Ryan Hansberry
Modified 3 years, 8 months ago
Reviewers: Kyle Horimoto, Tim Song, battre, Elliot Glaysher, Lei Zhang, stevenjb
Base URL:
Comments: 51