git/cros.git
2 years agoClean Libcros's grave master
Ryo Hashimoto [Tue, 26 Jun 2012 07:26:55 +0000 (16:26 +0900)]
Clean Libcros's grave

BUG=chromium:127051
TEST=None

Change-Id: I1bb403911d1da21124667a5dba9b36386dbe5349
Reviewed-on: https://gerrit.chromium.org/gerrit/26094
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
2 years agoBury Libcros
Ryo Hashimoto [Mon, 25 Jun 2012 08:52:31 +0000 (17:52 +0900)]
Bury Libcros

BUG=chromium:127051
TEST=None
CQ-DEPEND=I64cb98cf56f35c6d968be50664e1c4a1ff1fc4e6

Change-Id: I17a5c56c65dd324917e1d1f892c1867184a5ddf0
Reviewed-on: https://gerrit.chromium.org/gerrit/26011
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
2 years agomove string helpers from libcros factory-2475.B release-R21-2465.B
Mike Frysinger [Mon, 11 Jun 2012 22:22:17 +0000 (18:22 -0400)]
move string helpers from libcros

The only project using these funcs is libcros, so move them here
to avoid having to create a small shared library for it.

While we're at it, rename the files from "string.h" to "cros_string.h"
to avoid implicit collision with the system "string.h".

BUG=chromium-os:29973
TEST=`cbuildbot {x86,amd64,arm}-generic-full` worked

Change-Id: Ic0c5bb481f163f26108c6bcfd18e731b18ff628d
Reviewed-on: https://gerrit.chromium.org/gerrit/25044
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 years agopull in base/stringprintf.h directly factory-2268.16.B factory-2305.B factory-2338.B factory-2368.B factory-2394.B factory-2460.B firmware-link-2348.B release-R20-2268.B stabilize2
Mike Frysinger [Fri, 13 Apr 2012 13:44:12 +0000 (09:44 -0400)]
pull in base/stringprintf.h directly

Newer libbase has split this out of string_util.h, so we need to
explicitly include it now.

BUG=chromium-os:25872
TEST=`emerge-x86-alex libcros` works with old & new libbase

Change-Id: I73f83ba986d3d171f7e24c944f714d013614d25d
Reviewed-on: https://gerrit.chromium.org/gerrit/20200
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 years ago[libcros] add OWNERS
Elly Jones [Fri, 6 Apr 2012 18:23:21 +0000 (14:23 -0400)]
[libcros] add OWNERS

TEST=None
BUG=chromium-os:22007

Change-Id: I46f6d424898dc764658f6a4cd071eb3b056dea85
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/19764
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years agoRemove deprecated network functions
Ryo Hashimoto [Wed, 21 Mar 2012 17:20:49 +0000 (10:20 -0700)]
Remove deprecated network functions

BUG=chromium-os:16557
TEST=gmerge libcros

Change-Id: I7c9e33ccdc6be1b924d75e9a5fb1bcf156e20056
Reviewed-on: https://gerrit.chromium.org/gerrit/18669
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
2 years agoAdd method to set manager property. release-R19-2046.B
Nikita Kostylev [Thu, 22 Mar 2012 17:21:20 +0000 (21:21 +0400)]
Add method to set manager property.

BUG=chromium-os:25976
TEST=none

Change-Id: Ic1b25c179ff658992a0150a58d58e9abba1fb672
Reviewed-on: https://gerrit.chromium.org/gerrit/18863
Reviewed-by: Jason Glasgow <jglasgow@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Nikita Kostylev <nkostylev@chromium.org>
Commit-Ready: Nikita Kostylev <nkostylev@chromium.org>

2 years agodrop test_libbase_ndebug factory-1987.B
Mike Frysinger [Fri, 9 Mar 2012 15:41:25 +0000 (10:41 -0500)]
drop test_libbase_ndebug

The ebuilds now have USE flag depends in place so that things are checked
automatically at `emerge` time, so there should be no need for an explicit
test in random packages.

BUG=None
TEST=`USE=cros-debug emerge-x86-alex libcros` works
TEST=`USE=-cros-debug emerge-x86-alex libcros` works

Change-Id: I803bfbb764e568a67facba541155a375375683f9
Reviewed-on: https://gerrit.chromium.org/gerrit/17693
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 years agoconvert to SLOT-ed libbase
Mike Frysinger [Fri, 9 Mar 2012 15:46:08 +0000 (10:46 -0500)]
convert to SLOT-ed libbase

BUG=chromium-os:16623
TEST=`emerge-x86-alex libcros` still works

Change-Id: I2d3b631684b79a9a4a316a4518b69658bbf55766
Reviewed-on: https://gerrit.chromium.org/gerrit/17692
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>

2 years agoRemove chromeos_cryptohome.cc
Ryo Hashimoto [Tue, 28 Feb 2012 04:37:48 +0000 (13:37 +0900)]
Remove chromeos_cryptohome.cc

BUG=chromium-os:16552
TEST=gmerge libcros

Change-Id: I2e2240075d5ea3f9045df271263d2afabcb76e6f
Reviewed-on: https://gerrit.chromium.org/gerrit/16934
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>

2 years agoDeprecate Cryptohome functions
Ryo Hashimoto [Tue, 14 Feb 2012 07:53:40 +0000 (16:53 +0900)]
Deprecate Cryptohome functions

BUG=chromium-os:16552
TEST=gmerge libcros

Change-Id: I70d01010ad6528e8820f8795c8e6ede560470d47
Reviewed-on: https://gerrit.chromium.org/gerrit/15817
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
2 years agoMove Cryptohome mount error code to system_api
Ryo Hashimoto [Wed, 8 Feb 2012 09:54:43 +0000 (18:54 +0900)]
Move Cryptohome mount error code to system_api

BUG=chromium-os:16552
TEST=gmerge libcros

Change-Id: I14f756b802d37ba7c2cbccb2be3ad5ac9c2e5539
Reviewed-on: https://gerrit.chromium.org/gerrit/15481
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
2 years agoDeprecate unused cryptohome functions
Ryo Hashimoto [Mon, 6 Feb 2012 03:44:04 +0000 (12:44 +0900)]
Deprecate unused cryptohome functions

BUG=chromium-os:16552
TEST=gmerge libcros

Change-Id: I42de2390f84ff2fc4abd8a74c050fd1223d8d434
Reviewed-on: https://gerrit.chromium.org/gerrit/15310
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years agoRemove deprecated cryptohome functions
Ryo Hashimoto [Fri, 3 Feb 2012 11:14:17 +0000 (20:14 +0900)]
Remove deprecated cryptohome functions

BUG=chromium-os:16552
TEST=gmerge libcros

Change-Id: I04c4e4c484ef6e044373b9ee408b6b3d13270641
Reviewed-on: https://gerrit.chromium.org/gerrit/15222
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years agoRemove chromeos_imageburn.*
Ryo Hashimoto [Wed, 1 Feb 2012 07:34:47 +0000 (16:34 +0900)]
Remove chromeos_imageburn.*

BUG=chromium-os:16553
TEST=gmerge libcros

Change-Id: Id45620c03ba58918d156673ce829082579fce540
Reviewed-on: https://gerrit.chromium.org/gerrit/15142
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
2 years agoDeprecate libcros CryptohomeAsyncSetOwnerUser release-R18-1660.B
Bartosz Fabianowski [Fri, 27 Jan 2012 13:43:30 +0000 (14:43 +0100)]
Deprecate libcros CryptohomeAsyncSetOwnerUser

This deprecates the CryptohomeAsyncSetOwnerUser method in libcros obsoleted
by the switch of cryptohomed to libpolicy.

BUG=chromium-os:25464
TEST=built chrome and libcros
CQ-DEPEND=I2c085b927fd5412edf02f9026cad5dd7fc608ccc

Change-Id: I0236456756cd136b505260a08ebce9bb2f429b7a
Reviewed-on: https://gerrit.chromium.org/gerrit/14947
Commit-Ready: Bartosz Fabianowski <bartfab@google.com>
Reviewed-by: Julian Pastarmov <pastarmovj@chromium.org>
Tested-by: Bartosz Fabianowski <bartfab@google.com>
2 years agoDeprecate chromeos_imageburn.h/cc
Ryo Hashimoto [Thu, 26 Jan 2012 06:06:50 +0000 (15:06 +0900)]
Deprecate chromeos_imageburn.h/cc

BUG=chromium-os:16553
TEST=gmerge libcros

Change-Id: Ia75491cb318e5b2467e6ff366cffa383bc0eddf6
Reviewed-on: https://gerrit.chromium.org/gerrit/14863
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years agoReplace deprecated flimflam "GetWifiService" with "GetService"
Steven Bennetts [Mon, 23 Jan 2012 19:55:30 +0000 (11:55 -0800)]
Replace deprecated flimflam "GetWifiService" with "GetService"

BUG=none
TEST=Ensure that connecting to a hidden wifi network still works.

Change-Id: I29ff0c3f060139a1a1a138a57cfa515f8b116e60
Reviewed-on: https://gerrit.chromium.org/gerrit/14626
Commit-Ready: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Tested-by: Steven Bennetts <stevenjb@chromium.org>
2 years agoDeprecate unused functions in chromeos_network.cc
Steven Bennetts [Tue, 17 Jan 2012 23:20:57 +0000 (15:20 -0800)]
Deprecate unused functions in chromeos_network.cc

These have not been used in Chrome for a very long time.

BUG=none
TEST=build libcros, chrome+libcros

Change-Id: I19a65de6acd7d6f55afbf77e455f7424d89eeabc
Reviewed-on: https://gerrit.chromium.org/gerrit/14336
Tested-by: Steven Bennetts <stevenjb@chromium.org>
Commit-Ready: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years ago[libcros] use libchrome{,os}.pc
Elly Jones [Thu, 19 Jan 2012 20:43:23 +0000 (15:43 -0500)]
[libcros] use libchrome{,os}.pc

BUG=chromium-os:24959
TEST=build

Change-Id: I9567a041b451036f887bf8849391bcab1d452c21
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/14497
Reviewed-by: Kees Cook <keescook@chromium.org>
2 years agoRemove unused manuall tools that do not compile.
Satoru Takabayashi [Tue, 17 Jan 2012 17:53:19 +0000 (09:53 -0800)]
Remove unused manuall tools that do not compile.

These have been broken and excluded from the build for
four months, but no one stepped up to fix them.

BUG=chromium-os:20648
TEST=USE=install_tests emerge-x86-alex libcros

Change-Id: I77499ccbfe6a1a510bf7d186b760438d198f29e7
Reviewed-on: https://gerrit.chromium.org/gerrit/14292
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Commit-Ready: Satoru Takabayashi <satorux@chromium.org>

2 years agoRemove functions in chromeos_network_deprecated.h.
Satoru Takabayashi [Wed, 11 Jan 2012 21:38:07 +0000 (13:38 -0800)]
Remove functions in chromeos_network_deprecated.h.

These are no longer used.

BUG=chromium-os:16565
TEST=build libcros

Change-Id: I41ff0a645ea5145a7ef444670a2a441ee39b8945
Reviewed-on: https://gerrit.chromium.org/gerrit/14004
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Commit-Ready: Satoru Takabayashi <satorux@chromium.org>

2 years agoRevert "[libcros] use libchromeos.pc"
Scott James Remnant [Fri, 13 Jan 2012 01:58:46 +0000 (17:58 -0800)]
Revert "[libcros] use libchromeos.pc"

This reverts commit 1df9f90eacad32ec490c035154e418e8494c6136

Change-Id: I2874e4dc19fe2c768d350cec94e96f92233637a5
Reviewed-on: https://gerrit.chromium.org/gerrit/14115
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Tested-by: Scott James Remnant <keybuk@chromium.org>
2 years ago[libcros] use libchromeos.pc
Elly Jones [Wed, 11 Jan 2012 22:13:34 +0000 (17:13 -0500)]
[libcros] use libchromeos.pc

BUG=chromium-os:24959
TEST=build

Change-Id: If042ee956fb0c03bcf532a5da611adc9342d355f
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/14009

2 years agoDeprecate functions in chromeos_network_deprecated.h.
Satoru Takabayashi [Fri, 6 Jan 2012 18:59:39 +0000 (10:59 -0800)]
Deprecate functions in chromeos_network_deprecated.h.

These were only used by 'entd' and it's now gone:
https://gerrit.chromium.org/gerrit/#change,8532

BUG=chromium-os:16565
TEST=build libcros

Change-Id: Ie0847f94da728dd4eeb4ad63b7b27cec170108cc
Reviewed-on: https://gerrit.chromium.org/gerrit/13811
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Ken Mixter <kmixter@chromium.org>
Commit-Ready: Satoru Takabayashi <satorux@chromium.org>

2 years agoRemove chromeos_power,resume,screen_lock.
Satoru Takabayashi [Tue, 3 Jan 2012 17:34:42 +0000 (09:34 -0800)]
Remove chromeos_power,resume,screen_lock.

We no longer use them.
Along the way, remove chromeos_libcros_service, that no
longer exists, from cros_api.gyp,

BUG=chromium-os:21115,chromium-os:16558,chromium-os:16559
TEST=build chrome and libcros

Change-Id: I05b89e8340f41617e13662d8dcb45d60540186ba
Reviewed-on: https://gerrit.chromium.org/gerrit/13583
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
2 years agoRemove chromeos_update_engine.
Satoru Takabayashi [Thu, 29 Dec 2011 22:43:10 +0000 (14:43 -0800)]
Remove chromeos_update_engine.

We no longer use this.

BUG=chromium-os:16564
TEST=chrome and libcros builds

Change-Id: I938c21999aae465efa340cc705219fc74507906f
Reviewed-on: https://gerrit.chromium.org/gerrit/13545
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
2 years agoDeprecate power, resume, and screen lock functions
Simon Que [Fri, 2 Dec 2011 00:39:30 +0000 (16:39 -0800)]
Deprecate power, resume, and screen lock functions

BUG=chromium-os:21115,chromium-os:16558,chromium-os:16559
TEST=emerge libcros

Change-Id: I2239006c201f4e0c2d2f21eee65e937917746d40
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/12356
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
2 years agoDeprecated unused old functions from chromeos_cryptohome.h. factory-1412.B release-R17-1412.B
Satoru Takabayashi [Fri, 18 Nov 2011 17:53:37 +0000 (09:53 -0800)]
Deprecated unused old functions from chromeos_cryptohome.h.

BUG=chromium-os:16552
TEST=libcros and chrome build

Change-Id: I5eb86d9c7eafd163b099460c3e48420412076038
Reviewed-on: https://gerrit.chromium.org/gerrit/12024
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Commit-Ready: Satoru Takabayashi <satorux@chromium.org>

2 years agoRemove mount functions
Ryo Hashimoto [Wed, 23 Nov 2011 07:44:53 +0000 (16:44 +0900)]
Remove mount functions

BUG=chromium-os:16556
TEST=gmerge libcros

Change-Id: Ied8c1c540a3c9cd3cf777ade6f649c379fd4767f
Reviewed-on: https://gerrit.chromium.org/gerrit/12063
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>

2 years agochromeos: Deprecate functions in chromeos_update_engine.h part 2.
Satoru Takabayashi [Tue, 22 Nov 2011 22:18:56 +0000 (14:18 -0800)]
chromeos: Deprecate functions in chromeos_update_engine.h part 2.

Forgot to update load.cc in the previous patch...

BUG=chromium-os:16564
TEST=chrome and libcros builds

Change-Id: Ib59156551bc12fe4b01f8ffbada39f7091e3ae0e
Reviewed-on: https://gerrit.chromium.org/gerrit/12047
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
2 years agoDeprecate functions in chromeos_update_engine.h.
Satoru Takabayashi [Tue, 22 Nov 2011 21:19:31 +0000 (13:19 -0800)]
Deprecate functions in chromeos_update_engine.h.

These are no longer used in Chrome.

BUG=chromium-os:16564
TEST=chrome and libcros builds

Change-Id: I1698c47cc7c88ff7a14d46e1f8901e06b5a07e5b
Reviewed-on: https://gerrit.chromium.org/gerrit/12040
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Commit-Ready: Satoru Takabayashi <satorux@chromium.org>

2 years agoReplace the deprecated flimflam GetVPNService call with GetService.
Ben Chan [Wed, 16 Nov 2011 21:39:07 +0000 (13:39 -0800)]
Replace the deprecated flimflam GetVPNService call with GetService.

This CL changes ChromeOSRequestVirtualNetworkProperties to use the
updated flimflam GetService DBus method introduced in another CL:
https://gerrit.chromium.org/gerrit/#change,11423

BUG=chromium-os:22930
TEST=Tested connecting to L2TP/IPsec VPN servers.

Change-Id: Icf83abf6d13b810d0e640dae684dd4d351e3d860
Reviewed-on: https://gerrit.chromium.org/gerrit/11837
Reviewed-by: Sam Leffler <sleffler@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
2 years agoDeprecate mount functions
Ryo Hashimoto [Mon, 7 Nov 2011 09:28:18 +0000 (18:28 +0900)]
Deprecate mount functions

BUG=chromium-os:16556
TEST=gmerge libcros

Change-Id: I065132ebbc5b2e49a76dd0f58b680d06eda1c7e6
Reviewed-on: https://gerrit.chromium.org/gerrit/11258
Commit-Ready: Ryo Hashimoto <hashimoto@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
2 years agoFix provider properties passed to flimflam GetVPNService DBus call.
Ben Chan [Tue, 15 Nov 2011 19:27:07 +0000 (11:27 -0800)]
Fix provider properties passed to flimflam GetVPNService DBus call.

This CL changes the provider properties passed to the GetVPNService
DBus call from {Name, Host, Type} to Provider.{Name, Host, Type} in
order to be in sync with the changes made in another CL:
https://gerrit.chromium.org/gerrit/#change,11423

BUG=chromium-os:22930
TEST=Tested connecting to L2TP/IPsec VPN servers.

Change-Id: Ie78bcfb2782a4c8c482bf73ad1ee9fe6bb878b61
Reviewed-on: https://gerrit.chromium.org/gerrit/11749
Reviewed-by: Sam Leffler <sleffler@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
2 years agoUse "ConfigureService" instead of "ConfigureWifiService" in ConfigureService API.
Steven Bennetts [Tue, 15 Nov 2011 00:13:07 +0000 (16:13 -0800)]
Use "ConfigureService" instead of "ConfigureWifiService" in ConfigureService API.

BUG=chromium-os:22003
TEST=requires Chrome integration to test beyond basic "compiles and runs"

Change-Id: I6950432ba9c8f9170d448138ff52a1535b4a38f5
Reviewed-on: https://gerrit.chromium.org/gerrit/11662
Commit-Ready: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
Tested-by: Mattias Nissler <mnissler@chromium.org>
2 years agoAdd ConfigureService() to API
Steven Bennetts [Wed, 26 Oct 2011 17:18:55 +0000 (10:18 -0700)]
Add ConfigureService() to API

BUG=chromium-os:22003
TEST=requires Chrome integration to test beyond basic "compiles and runs"

Change-Id: Id5be71773b9df03adcbedcd8a37bc5eb3dcbab05
Reviewed-on: https://gerrit.chromium.org/gerrit/10720
Commit-Ready: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Tested-by: Steven Bennetts <stevenjb@chromium.org>
2 years agoRemove chromeos_login, chromeos_speech_synthesis, chromeos_brightness. factory-1284.B firmware-kiev-2.112.B firmware-uboot_v2-1299.B
Satoru Takabayashi [Thu, 27 Oct 2011 20:57:51 +0000 (13:57 -0700)]
Remove chromeos_login, chromeos_speech_synthesis, chromeos_brightness.

These files are no longer used.

BUG=chromium-os:16551,chromium-os:16555,chromium-os:16560
TEST=libcros and chrome build.

Change-Id: I915fd71dd0485062a245aaa85d16905da936525c
Reviewed-on: https://gerrit.chromium.org/gerrit/10812
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
2 years agoAdd CryptohomePkcs11*ForUser. factory-1235.B
Elly Jones [Wed, 26 Oct 2011 18:26:38 +0000 (14:26 -0400)]
Add CryptohomePkcs11*ForUser.

BUG=chromium-os:20778
TEST=Build

Change-Id: Ieefdbcfeb135a1981c90eaae9692015a50e1cc44
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/10730
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years agoDeprecated speech synthesis library.
Ryo Hashimoto [Thu, 20 Oct 2011 02:24:01 +0000 (11:24 +0900)]
Deprecated speech synthesis library.

BUG=chromium-os:16560
TEST=gmerge libcros

Change-Id: I453f67b51c7bf65888cbbd475037ab743c7faacd
Reviewed-on: http://gerrit.chromium.org/gerrit/10387
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Ryo Hashimoto <hashimoto@chromium.org>
2 years agoUse D-Bus service constants defined in dbus/service_constants.h
Satoru Takabayashi [Wed, 19 Oct 2011 18:21:53 +0000 (11:21 -0700)]
Use D-Bus service constants defined in dbus/service_constants.h

TEST=emerge libcros
BUG=chromium-os:16556

Change-Id: Ia6a2ea86387bd1d8f44767bdfdba7aa2e6b0728f
Reviewed-on: http://gerrit.chromium.org/gerrit/10311
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Toni Barzic <tbarzic@chromium.org>
2 years agoUse D-Bus service constants defined in dbus/service_constants.h
Satoru Takabayashi [Wed, 19 Oct 2011 20:47:25 +0000 (13:47 -0700)]
Use D-Bus service constants defined in dbus/service_constants.h

chromeos_update_engine.cc will be gone once the code is moved
to Chrome, but it's good to use the constants anyway.

TEST=emerge libcros
BUG=chromium-os:16564

Change-Id: I99f06866a32a125e548e1283b9831797510e5e51
Reviewed-on: http://gerrit.chromium.org/gerrit/10335
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
2 years agoDeprecate functions in chromeos_brigthess and chromeos_login.
Satoru Takabayashi [Wed, 19 Oct 2011 00:09:58 +0000 (17:09 -0700)]
Deprecate functions in chromeos_brigthess and chromeos_login.

The D-Bus code for them is now moved to Chrome.

BUG=chromium-os:16551,chromium-os:16555
TEST=libcros and chrome build.

Change-Id: I4f8039ed96d76b1bc4f51103473f8a600ff31557
Reviewed-on: http://gerrit.chromium.org/gerrit/10269
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
2 years agoDo not attempt to receive a return value from EmitLoginPromptVisible. release-R16-1193.B
Satoru Takabayashi [Tue, 18 Oct 2011 16:18:55 +0000 (09:18 -0700)]
Do not attempt to receive a return value from EmitLoginPromptVisible.

Because the D-Bus method EmitLoginPromptVisible does not return a value.
See platform/login_manager/session_manager.xml for the signature.

Return 'true' from chromeos::EmitLoginPromptVisible() instead of making the
return value type to 'void' , as changing the libcros API is inherently
tricky. This is fine, as the return value is not used in Chrome anyway.

TEST=libcros builds
BUG=chromium-os:20517

Change-Id: Ib5b7db49184ea32b1fb99e67d14f15ac81d154df
Reviewed-on: http://gerrit.chromium.org/gerrit/10225
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
2 years agoAdding hidden propertyu to DiskInfo.
tbarzic [Fri, 23 Sep 2011 19:41:57 +0000 (12:41 -0700)]
Adding hidden propertyu to DiskInfo.

The property tells us if the device should be shown in the UI (e.g in
fileBrowser), or mount library should just keep track of it (we need this
information for imageburner to work).

Current use of is_hidden property in the event from cros_disks is relict from
times when DeviceKit was used and has no practical purpose anymore, so we are
reusing it.

Also this CL stops setting partition slave property of DiskInfo, since it is not
used anymore (and is always NULL).

Chrome side of the change: http://codereview.chromium.org/8049002/

TEST=run opt/google/chrome/chromeos/monitor_mount and checked that is_hidden property gets set as it should for inserted device
BUG=chromium-os:20476

Change-Id: I3acfd4e7c20c8fcd467a28cf63563cbf634b85e4
Reviewed-on: http://gerrit.chromium.org/gerrit/8216
Reviewed-by: Zelidrag Hornung <zelidrag@chromium.org>
Tested-by: Toni Barzic <tbarzic@chromium.org>
2 years agoFix a mismatch in the DBus call issued by RequestVirtualNetworkProperties.
Ben Chan [Mon, 26 Sep 2011 20:59:56 +0000 (13:59 -0700)]
Fix a mismatch in the DBus call issued by RequestVirtualNetworkProperties.

This CL fixes RequestVirtualNetworkProperties in libcros to properly invoke
flimflam.Manager.GetVPNService with a callback to GetServiceGValueNotify
instead of GetPropertiesGValueNotify.

BUG=chromium-os:19951
TEST=gmerge a modified libcros on Cr48 and tested adding a VPN connection via the network menu.

Change-Id: I7bd26fb22a152a89184c463291d6ec8e98b73b36
Reviewed-on: http://gerrit.chromium.org/gerrit/8306
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
2 years agoRemove unused power enum and struct
Simon Que [Sat, 24 Sep 2011 01:35:50 +0000 (18:35 -0700)]
Remove unused power enum and struct

BUG=chromium-os:16566
TEST=none

Change-Id: I8651f545c05df50b71ab332cf92024c627ba9ac6
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/8254
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years agochromeos_power: read battery state thru dbus as bool
Simon Que [Sat, 24 Sep 2011 00:53:26 +0000 (17:53 -0700)]
chromeos_power: read battery state thru dbus as bool

The only BatteryState enum value being used in Chrome is
BATTERY_STATE_FULLY_CHARGED.  Thus, as part of eliminating libcros,
powerd now only sends a boolean indicating whether the battery is fully
charged.  This way, there is no need to share an enum definition between
Chrome and Chrome OS.

This patch still keeps the BatteryState enum and converts the boolean
back to it, as a temporary stopgap.  Eventually the code in
chromeos_power will be moved to Chrome.

BUG=chromium-os:16566
TEST=none

Change-Id: I66d8b272649431a15363878f60a31a4a99897963
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/8250
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years agokDBusObjectProperty has type G_OBJECT_PATH rather than STRING, so
Nathan Williams [Mon, 26 Sep 2011 18:29:16 +0000 (14:29 -0400)]
kDBusObjectProperty has type G_OBJECT_PATH rather than STRING, so
create and use an appropriate getter.

Fixes SMS reception in Chrome.

BUG=chromium-os:20651
TEST=Send SMS to device from phone

Change-Id: I1515c70448096d7ef300c54b7e51e13b354fd465
Reviewed-on: http://gerrit.chromium.org/gerrit/8281
Reviewed-by: Eric Shienbrood <ers@chromium.org>
Commit-Ready: Nathan J. Williams <njw@chromium.org>
Tested-by: Nathan J. Williams <njw@chromium.org>
2 years agoPurge all the known deprecated code.
Satoru Takabayashi [Tue, 20 Sep 2011 20:59:46 +0000 (13:59 -0700)]
Purge all the known deprecated code.

This patch will remove 2,000+ lines.

TEST=gmerge libcros, entd, chrome
BUG=chromium-os:20589

Change-Id: I4178343adc9f61a7e2d0c2b4fb14ac92d9bfe51e
Reviewed-on: http://gerrit.chromium.org/gerrit/8018
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
2 years agochromeos_power: Get all properties with one dbus call
Simon Que [Thu, 22 Sep 2011 20:34:28 +0000 (13:34 -0700)]
chromeos_power: Get all properties with one dbus call

Making multiple dbus method calls is expensive.  It can be done with one
call.

BUG=chromium-os:20732
TEST=Plug/unplug power, make sure battery icon/info is updated.

Change-Id: I38ca5afca8657718f4b54bcf332749a037c0d0d8
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/8160
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years agochromeos_power: change some signals to methods
Simon Que [Wed, 21 Sep 2011 20:23:37 +0000 (13:23 -0700)]
chromeos_power: change some signals to methods

When libcros talks to powerd, it should use method_calls to avoid
broadcasting dbus signals to the whole system.

BUG=chromium-os:20115
TEST=none

Change-Id: Iecf16a9440eac4809267576eef2a218de6953b06
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/8094
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years agoFix a template parameter type for DeleteMountCallbackData.
Satoru Takabayashi [Thu, 22 Sep 2011 01:26:06 +0000 (18:26 -0700)]
Fix a template parameter type for DeleteMountCallbackData.

This bug is not harmful in practice as the parameter type does not
matter when deleting the callback data, but it's good to use the
right type anyway. This also allows us to remove
MethodCallbackData which is no longer used.

BUG=chromium-os:20589
TEST=gmerge libcros

Change-Id: I7bbd1118b88f8a3cb1fa1fbf6a170c4856d71ad5
Reviewed-on: http://gerrit.chromium.org/gerrit/8106
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
2 years agochromeos_power: Fix power manager dbus paths
Simon Que [Wed, 21 Sep 2011 19:25:57 +0000 (12:25 -0700)]
chromeos_power: Fix power manager dbus paths

They should be kPowerManagerServicePath instead of "/".

BUG=chromium-os:20115
TEST=Make sure power supply readings in power manager still work.

Change-Id: Ic1b1af1010c0ef3f5bcfa130c0751780608ac9c4
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/8064
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
2 years agoExclude manual testing tools that don't compile from the build.
Satoru Takabayashi [Tue, 20 Sep 2011 22:39:51 +0000 (15:39 -0700)]
Exclude manual testing tools that don't compile from the build.

These tools use deprecated APIs. We should fix them if we want to keep
them. Otherwise, we should remove them. For now, exclude them from the
build.

TEST=USE=install_tests emerge-x86-alex libcros
BUG=chromium-os:20648

Change-Id: I528d12920a9887a9028b31d08183c400a0b6995f
Reviewed-on: http://gerrit.chromium.org/gerrit/8011
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Eric Shienbrood <ers@chromium.org>
2 years agoRemove libcros_service_tester.cc.
Satoru Takabayashi [Tue, 20 Sep 2011 00:11:54 +0000 (17:11 -0700)]
Remove libcros_service_tester.cc.

We can test the proxy resolution service using dbus-send and dbus-monitor
as described in http://codereview.chromium.org/7972003/

TEST=build libcros
BUG=chromium-os:18904

Change-Id: Ic257bd7348cb2d1dca0d8744d4419dab97adebf9
Reviewed-on: http://gerrit.chromium.org/gerrit/7956
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Kuan Tan <kuan@chromium.org>
2 years agoDeprecate functions no longer used in neither chrome or entd.
Satoru Takabayashi [Mon, 19 Sep 2011 21:52:59 +0000 (14:52 -0700)]
Deprecate functions no longer used in neither chrome or entd.

We should deprecate and remove unused functions in preparation for
moving D-Bus code from libcros to Chrome, so that we don't move
unnecessary code to Chrome.

The list of unused functions were created as follows:

% grep '^extern ' ~/chromeos/src/platform/cros/chromeos_*.h |perl -nle 'print $1 if /\(\*(\w+)\)/' > ~/libcros_funcs_unsorted
% cat ~/libcros_funcs_unsorted |while read line; do grep -q "\\<$line(" ~/chrome/src/chrome/**/*.{cc,h} ~/chromeos/src/platform/entd/**/*.{cc,h} || echo "$line"; done > ~/libcros_funcs_unused_unsorted

TEST=gmerge libcros, chrome, entd
BUG=chromium-os:20589

Change-Id: I58c751b8bd43e24d577d93d2e0cf7e444d14fb19
Reviewed-on: http://gerrit.chromium.org/gerrit/7961
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
2 years agoDeprecate functions in chromeos_libcros_service.h (take 2)
Satoru Takabayashi [Mon, 19 Sep 2011 22:06:11 +0000 (15:06 -0700)]
Deprecate functions in chromeos_libcros_service.h (take 2)

These functions are no longer used in Chrome since
crrev.com/101640.

My bad, I had to revert the previous attempt
http://gerrit.chromium.org/gerrit/#change,7947 as it broke the build.
This time, I tested more carefully.

BUG=chromium-os:18904
TEST=gmerge libcros; gmerge chrome

Change-Id: Ibe2ead4f2982a72e617700abbd007b75a289d236
Reviewed-on: http://gerrit.chromium.org/gerrit/7952
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
2 years agoRevert "Deprecate functions in chromeos_libcros_service.h"
Satoru Takabayashi [Mon, 19 Sep 2011 21:56:24 +0000 (14:56 -0700)]
Revert "Deprecate functions in chromeos_libcros_service.h"

This reverts commit de4d6cf7edfa6240a8c4e88012c5eed15bf79b1a

Change-Id: I7bb46b28743579e0fd9708d7ec60d51ccc7c5d2e
Reviewed-on: http://gerrit.chromium.org/gerrit/7950
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
2 years agoDeprecate functions in chromeos_libcros_service.h
Satoru Takabayashi [Mon, 19 Sep 2011 19:53:31 +0000 (12:53 -0700)]
Deprecate functions in chromeos_libcros_service.h

These functions are no longer used in Chrome since
crrev.com/101640

BUG=chromium-os:18904
TEST=gmerge libcros; gmerge chrome

Change-Id: Ia0f38213503126f24319613f47b3727e1386c595
Reviewed-on: http://gerrit.chromium.org/gerrit/7947
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
2 years agoDeprecate network functions no longer used in neither in chrome nor entd.
Satoru Takabayashi [Mon, 19 Sep 2011 18:13:50 +0000 (11:13 -0700)]
Deprecate network functions no longer used in neither in chrome nor entd.

This will fix the linux chromium os clang build, Value will be completely
gone from header files. Value is still in deprecated code in
chromeos_network.cc but will be removed in the near future.

Note that code still used in entd is preseved.

BUG=chromium-os:20578
TEST=gmerge libcros, entd, chrome

Change-Id: Iedfdb37bd0bbbd421c2a411c890fc69ea5c290bd
Reviewed-on: http://gerrit.chromium.org/gerrit/7929
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
3 years agoAllow chrome to trigger login-prompt-visible.
Sadrul Habib Chowdhury [Fri, 16 Sep 2011 18:29:34 +0000 (14:29 -0400)]
Allow chrome to trigger login-prompt-visible.

BUG=chromium-os:20517
TEST=After boot, I did 'status update-engine', and it showd 'start/running', instead of 'stop/waiting' as before.
I also edited /etc/init/boot-complete.conf to touch a file on /tmp/, and the file was created on boot.

Change-Id: I6acd17c5af0db18631ec077628516b55edf1f93b
Reviewed-on: http://gerrit.chromium.org/gerrit/7869
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Sadrul Habib Chowdhury <sadrul@chromium.org>
3 years agoDeprecate functions using base::Value factory-1020.B
Satoru Takabayashi [Thu, 8 Sep 2011 18:29:49 +0000 (11:29 -0700)]
Deprecate functions using base::Value

BUG=chromium-os:19576
TEST=Test that Chrome compiles and network functionality works in Chrome

Change-Id: Ie8b89b7b6f58885e5b357e7e22fd80cbee3379d3
Reviewed-on: http://gerrit.chromium.org/gerrit/7429
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoReplace the hard-coded object path "/" with kFlimflamServicePath.
Satoru Takabayashi [Wed, 7 Sep 2011 21:55:07 +0000 (14:55 -0700)]
Replace the hard-coded object path "/" with kFlimflamServicePath.

Along the way, replaced kConnman* constants with kFlimflam* in
chromeos_network_deprecated.cc.

BUG=chromium-os:20135
TEST=gmerge system_api, libcros, chrome, and networking works

Change-Id: Ibf9792922f86278223755a3a86987d2178a0a264
Reviewed-on: http://gerrit.chromium.org/gerrit/7374
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
3 years agoRemove duplicated D-Bus constants from chromeos_network_duplicated.cc
Satoru Takabayashi [Wed, 7 Sep 2011 23:03:27 +0000 (16:03 -0700)]
Remove duplicated D-Bus constants from chromeos_network_duplicated.cc

This cleanup is done by a Python script attached to crosbug.com/20152
Lines over 80 chars are manually folded, though.

TEST=build libcros
BUG=chromium-os:20152

Change-Id: I0a8a46153ba3a2c8a06e2f67e117a1f486d677e8
Reviewed-on: http://gerrit.chromium.org/gerrit/7372
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
3 years agoAdd GetIdleTime method to chromeos_power in Cros.
Szymon Sidor [Fri, 2 Sep 2011 02:42:23 +0000 (19:42 -0700)]
Add GetIdleTime method to chromeos_power in Cros.

BUG=chromium-os:17167
TEST=Successfully invoked on chrome side.

Change-Id: If08ef028f6f3f3387cc810bc420b0ae7141ce54e
Reviewed-on: http://gerrit.chromium.org/gerrit/7147
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Szymon Sidor <sidor@chromium.org>
3 years agoAdd RequestRemoveNetworkService and RequestNetworkServiceDisconnect factory-980.B test-982.B
Steven Bennetts [Tue, 30 Aug 2011 22:04:02 +0000 (15:04 -0700)]
Add RequestRemoveNetworkService and RequestNetworkServiceDisconnect

BUG=chromium-os:18186
TEST=ensure libcros and chrome compile

Change-Id: I71356b1179e400beef52c638f7c821c07025c40a
Reviewed-on: http://gerrit.chromium.org/gerrit/6963
Tested-by: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoAdd glib dependency for Chrome static library (load.cc)
Steven Bennetts [Mon, 29 Aug 2011 17:51:05 +0000 (10:51 -0700)]
Add glib dependency for Chrome static library (load.cc)

BUG=chromium-os:19576
TEST=none

Change-Id: Ie5d6b8586e8b8427af3bd9e9212b04ba6a14b490
Reviewed-on: http://gerrit.chromium.org/gerrit/6826
Tested-by: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoReplace base::Value in chromeos_network with GValue
Steven Bennetts [Fri, 26 Aug 2011 21:42:34 +0000 (14:42 -0700)]
Replace base::Value in chromeos_network with GValue

BUG=chromium-os:19576
TEST=Test that Chrome compiles (will still use old calls) and test all network functionality in Chrome.

Change-Id: I6274bbf17171d69acb854c70c9f04aaf14f9f2cf
Reviewed-on: http://gerrit.chromium.org/gerrit/6786
Tested-by: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoRemove chromeos_wm_ipc_enums.h from cros.git.
Satoru Takabayashi [Tue, 16 Aug 2011 00:02:13 +0000 (17:02 -0700)]
Remove chromeos_wm_ipc_enums.h from cros.git.

The file is now maintained in system_api.git.

BUG=chromium-os:19054
TEST=emerge-x86-alex libcros window_manager power_manager

Change-Id: Id7aefe3533db96dc8edf5e2767872a5f6c0c9a6a
Reviewed-on: http://gerrit.chromium.org/gerrit/6035
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
3 years agoRewriting monitor mount application which has been outdated for some time.
tbarzic [Mon, 8 Aug 2011 18:42:36 +0000 (11:42 -0700)]
Rewriting monitor mount application which has been outdated for some time.

TEST=Verified the applications works on Cr48
BUG=None

Change-Id: I389a304d7e6b9bd99f5513fb3ad41ad54fc14d7c
Reviewed-on: http://gerrit.chromium.org/gerrit/5906
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Tested-by: Toni Barzic <tbarzic@chromium.org>
3 years agoMake libcros_service_tester more flexible. 0.15.877.B firmware-881-u-boot-v1 firmware-u-boot-v1
Satoru Takabayashi [Tue, 9 Aug 2011 16:58:27 +0000 (09:58 -0700)]
Make libcros_service_tester more flexible.

Add the following command line options:
--service_name to specify the service name
--object_path to specify the object path
--interface_name to specify the interface name
--urls to specify the URLs to resolve (comma separated).

Along the way, add www.gmail.com to the preset URLs.

BUG=chromium-os:18904
TEST=USE=install_tests start_devserver; sudo gmerge libcros; /opt/google/chrome/chromeos/libcros_service_tester

Change-Id: I37c529b4c88b1df88e82c9f0e2fca64177bbfa2c
Reviewed-on: http://gerrit.chromium.org/gerrit/5563
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Kuan Tan <kuan@chromium.org>
3 years agoFix gcc-4.6 build failure
Yusuke Sato [Tue, 9 Aug 2011 02:04:52 +0000 (11:04 +0900)]
Fix gcc-4.6 build failure

BUG=chromium-os:18743
TEST=ran emerge

Change-Id: I7dff0fa84c39be89f304fc84ff0a190475badd58
Reviewed-on: http://gerrit.chromium.org/gerrit/5523
Tested-by: Yusuke Sato <yusukes@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
3 years agoRemove SetTouchpadSensitivity and SetTouchpadTapToClick, which are no longer used.
Satoru Takabayashi [Tue, 2 Aug 2011 19:11:18 +0000 (12:11 -0700)]
Remove SetTouchpadSensitivity and SetTouchpadTapToClick, which are no longer used.

I'll submit this once chromeos-chrome's ebuild file gets new enough.

BUG=chromium-os:16562
TEST=gmerge libcros, and conform chrome boots

Change-Id: I23e24203a013c9044b57907377ea3af6d794cd2b
Reviewed-on: http://gerrit.chromium.org/gerrit/4083
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoNot building monitor_mount anymore, because it has become obsolete.
tbarzic [Mon, 1 Aug 2011 21:13:12 +0000 (14:13 -0700)]
Not building monitor_mount anymore, because it has become obsolete.

BUG=None
TEST=made sure libcros builds with USE=install_tests

Change-Id: I518eaf5da8cf286fb421e32969b44a496eed5947
Reviewed-on: http://gerrit.chromium.org/gerrit/5093
Reviewed-by: Zelidrag Hornung <zelidrag@chromium.org>
Tested-by: Toni Barzic <tbarzic@chromium.org>
3 years agoPower structs use string objects instead of char pointers
Simon Que [Tue, 26 Jul 2011 21:49:11 +0000 (14:49 -0700)]
Power structs use string objects instead of char pointers

Replacing "const char*" with std::string in PowerStatus and
PowerInformation so we won't have to worry about memory allocation.

BUG=chromium-os:16640
TEST=Run 'emerge-x86-generic libcros' to make sure it builds.

Change-Id: Ia2eae74e8569e4cedde9102cf9b6a29b751d1166
Reviewed-on: http://gerrit.chromium.org/gerrit/4961
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Tested-by: Simon Que <sque@chromium.org>
3 years agoGet power info from power manager instead of upower
Simon Que [Fri, 24 Jun 2011 22:31:11 +0000 (15:31 -0700)]
Get power info from power manager instead of upower

This patch removes dependence on upower and its numerous dependencies.
Instead, libcros gets power information from power manager, which now
has the same functionality as upower.

Also, added an extra check to ChromeOSDisconnectPowerStatus to prevent a
null pointer from being passed to dbus::Disconnect().

BUG=chromium-os:16640
TEST=Check the power/battery icon when running on both AC and battery
power.  It should have correct readings in both cases.

Change-Id: Ic23356f0d3524b1ef5ebe35dd0f9d3f953833a07
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/4949
Reviewed-by: Sameer Nanda <snanda@chromium.org>
3 years agoRevert "Get power info from power manager instead of upower" 0.14.811.B
Peter Mayo [Tue, 26 Jul 2011 16:00:04 +0000 (09:00 -0700)]
Revert "Get power info from power manager instead of upower"

This reverts commit 33c7e10e16f8b3f25929ab139fb30abc745838a4

Change-Id: I1fcdfab9cbd18c1ae408adba78caacd15c99e34a
Reviewed-on: http://gerrit.chromium.org/gerrit/4747
Reviewed-by: Peter Mayo <petermayo@chromium.org>
Tested-by: Peter Mayo <petermayo@chromium.org>
3 years agoGet power info from power manager instead of upower
Simon Que [Fri, 24 Jun 2011 22:31:11 +0000 (15:31 -0700)]
Get power info from power manager instead of upower

This patch removes dependence on upower and its numerous dependencies.
Instead, libcros gets power information from power manager, which now
has the same functionality as upower.

BUG=chromium-os:16640
TEST=Check the power/battery icon when running on both AC and battery
power.  It should have correct readings in both cases.

Change-Id: I63ef4cb31da6b117642161a57a17fef67d7ca0d0
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/4684
Reviewed-by: Sameer Nanda <snanda@chromium.org>
3 years agoRevert "Get power info from power manager instead of upower"
Darin Petkov [Fri, 22 Jul 2011 20:41:36 +0000 (13:41 -0700)]
Revert "Get power info from power manager instead of upower"

chrome and powerd crash in suite_Smoke.

This reverts commit ff8d71d8863876341d37b513f563e4b2a9a1a8c1

Change-Id: Ia076a3a73bfc7a3aa6dc0b414dd10091bedf45b3
Reviewed-on: http://gerrit.chromium.org/gerrit/4607
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Darin Petkov <petkov@chromium.org>
3 years agoGet power info from power manager instead of upower
Simon Que [Fri, 24 Jun 2011 22:31:11 +0000 (15:31 -0700)]
Get power info from power manager instead of upower

This patch removes dependence on upower and its numerous dependencies.
Instead, libcros gets power information from power manager, which now
has the same functionality as upower.

BUG=chromium-os:16640
TEST=Check the power/battery icon when running on both AC and battery
power.  It should have correct readings in both cases.

Change-Id: Ie3ac03ca2f2deb70e9ad7a5b7336b90daadf8dea
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/3387
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoLibcros changes for adding support for mount points different from removable device.
tbarzic [Tue, 19 Jul 2011 00:31:02 +0000 (17:31 -0700)]
Libcros changes for adding support for mount points different from removable device.

Also, removed deprecated method definitions from load.cc.

http://gerrit.chromium.org/gerrit/#change,4447 has to land before this.

It has to be commited with cros-disks change to FilesystemMount (http://gerrit.chromium.org/gerrit/#change,4544).

chrome side of the change:
 http://codereview.chromium.org/7457001

BUG=chromium-os:17673
TEST=Make sure that mounting devices still works and that MountCompleted signal is picked up (there should be a log entry in /var/log/ui/ui.LATEST)

Change-Id: I99a12006900cdcb2ecdff8c12265068f42c33be2
Reviewed-on: http://gerrit.chromium.org/gerrit/4449
Reviewed-by: Zelidrag Hornung <zelidrag@chromium.org>
Tested-by: Toni Barzic <tbarzic@chromium.org>
3 years agoLibcros support for formatting.
Szymon Sidor [Tue, 19 Jul 2011 23:21:08 +0000 (16:21 -0700)]
Libcros support for formatting.
Added FormatDevice procedure that communicates with cros-disks.

BUG=chromium-os:4541, chromium-os:17070
TEST=Check that format device function is available in Chrome Cros
Change-Id: Id49c8c0fe0ddb35442bfdf46586c0b1418679c5a
Reviewed-on: http://gerrit.chromium.org/gerrit/4446
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Szymon Sidor <sidor@chromium.org>
3 years agoRemove CheckForUpdate and Update which are no longer used. 780.B
Satoru Takabayashi [Tue, 12 Jul 2011 20:12:58 +0000 (13:12 -0700)]
Remove CheckForUpdate and Update which are no longer used.

I'll submit this once chromeos-chrome's ebuild file gets new enough.

BUG=chromium-os:16563
TEST=gmerge libcros, and conform chrome boots

Change-Id: I856d21020b47b6d66ccd49c0f2216a55448729f3
Reviewed-on: http://gerrit.chromium.org/gerrit/3956
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoDeprecate SetTouchpadSensitivity and SetTouchpadTapToClick, which are no longer used.
Satoru Takabayashi [Tue, 12 Jul 2011 20:39:48 +0000 (13:39 -0700)]
Deprecate SetTouchpadSensitivity and SetTouchpadTapToClick, which are no longer used.

The client code of these functions in Chrome has been gone since
http://src.chromium.org/viewvc/chrome?view=rev&revision=92056

BUG=chromium-os:16562
TEST=gmerge libcros and chrome and chrome boots.

Change-Id: Ifbd0ae5546636542b4c078ab107a202843a90988
Reviewed-on: http://gerrit.chromium.org/gerrit/3958
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoRemove unnecessary includes of "marshal.glibmarshal.h".
Satoru Takabayashi [Tue, 12 Jul 2011 21:47:20 +0000 (14:47 -0700)]
Remove unnecessary includes of "marshal.glibmarshal.h".

This is to make it clear which files actually need glib marshalling.
The header file is only needed in cc files that refer to marshal
functions such as marshal_VOID__STRING_BOXED.

After this cleanup, it becomes clear that only three cc files need
glib marshalling:

% grep -l marshal.glibmarshal.h *.cc
chromeos_imageburn.cc
chromeos_network.cc
chromeos_update_engine.cc

These files need marshalling as they monitor DBus signals
using dbus_g_proxy_connect_signal, which rely on GLib's signal mechanism
that requires object marshalling.

BUG=chromium-os:15922
TEST=gmerge chrome and libcros and both of them build.

Change-Id: I7014962caa713b45462a1a06c5a5db3d0945e168
Reviewed-on: http://gerrit.chromium.org/gerrit/3969
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoDeprecate CheckForUpdate and Update which are no longer used.
Satoru Takabayashi [Thu, 7 Jul 2011 21:54:03 +0000 (14:54 -0700)]
Deprecate CheckForUpdate and Update which are no longer used.

This change depends on http://codereview.chromium.org/7324007/

BUG=chromium-os:16563
TEST=gmerge libcros and chrome and confirmed chrome booted

Change-Id: I7270d68feb8d00e011dc3a3db8f1f50ac08e4df4
Reviewed-on: http://gerrit.chromium.org/gerrit/3757
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoMove Value to base::Value. This needs to be committed first so that I can
Dominic Mazzoni [Fri, 8 Jul 2011 21:23:40 +0000 (14:23 -0700)]
Move Value to base::Value. This needs to be committed first so that I can
do a DEPS roll and commit http://codereview.chromium.org/7259019/

BUG=chromium-os:17406
TEST=none

Change-Id: I9ac0ccf4367c9cfbfd45dcf8172d43a1826437fe
Reviewed-on: http://gerrit.chromium.org/gerrit/3813
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Dominic Mazzoni <dmazzoni@chromium.org>
3 years agoRemove SetSynapticsParameter which has been unused for quite long time.
Satoru Takabayashi [Wed, 6 Jul 2011 22:38:34 +0000 (15:38 -0700)]
Remove SetSynapticsParameter which has been unused for quite long time.

I'll submit this once chromeos-chrome's ebuild file gets new enough.

BUG=chromium-os:16561
TEST=gmerge libcros, and conform chrome boots

Change-Id: If42bb3c20a6f38da55a68dc5926060d15f141f5d
Reviewed-on: http://gerrit.chromium.org/gerrit/3693
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Dave Moore <davemoore@chromium.org>
3 years agoDeprecate SetSynapticsParameter which has been unused for quite long time.
Satoru Takabayashi [Fri, 1 Jul 2011 21:39:12 +0000 (14:39 -0700)]
Deprecate SetSynapticsParameter which has been unused for quite long time.

The client code in Chrome synaptics_library.h was gone long time ago:

http://src.chromium.org/viewvc/chrome?view=rev&revision=58842

The previous attempt of removing this directly caused chrome not to boot
as cros/load.cc in Chrome tree still tried to load the function. Hence
the change was reverted by davidjames:
http://gerrit.chromium.org/gerrit/#change,3418
We should have followed the right procesure even though the API was
unused for a year.

BUG=chromium-os:16561
TEST=gmerge libcros, and conform chrome boots

Change-Id: I755f6626950d7b50ce9c631a9a0590a3e62bf5da
Reviewed-on: http://gerrit.chromium.org/gerrit/3584
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Dave Moore <davemoore@chromium.org>
3 years agoRemove IBus dependencies from libcros build file.
Satoru Takabayashi [Thu, 30 Jun 2011 00:24:55 +0000 (17:24 -0700)]
Remove IBus dependencies from libcros build file.

We no longer use any IBus APIs in libcros.

BUG=chromium-os:16238
TEST=libcros builds

Change-Id: Icfaf1c1804d023281b073a4927e66cc99572b291
Reviewed-on: http://gerrit.chromium.org/gerrit/3421
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Yusuke Sato <yusukes@chromium.org>
3 years agoRevert "Remove chromeos_synaptics.* which have been unused for quite long time."
David James [Fri, 1 Jul 2011 00:27:40 +0000 (17:27 -0700)]
Revert "Remove chromeos_synaptics.* which have been unused for quite long time."

It's possible that this change is related to tree breakage.
We are reverting this change to see if the revert helps.

This reverts commit 314cafd97636fad073321a0bda6ecbeced6791f4

Change-Id: I16c44df55f67c9057327b19e2def6d4e7f98386b
Reviewed-on: http://gerrit.chromium.org/gerrit/3526
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Tested-by: David James <davidjames@chromium.org>
3 years agoRemove chromeos_synaptics.* which have been unused for quite long time.
Satoru Takabayashi [Thu, 30 Jun 2011 00:13:01 +0000 (17:13 -0700)]
Remove chromeos_synaptics.* which have been unused for quite long time.

The client code in Chrome synaptics_library.h was gone long time ago:

http://src.chromium.org/viewvc/chrome?view=rev&revision=58842

Hence it's safe to remove them directly, rather than to deprecate them
first.

BUG=chromium-os:16561
TEST=libcros builds.

Change-Id: I92a385ef2b6a3ce8a1b13663a3b6f9bc739b1cce
Reviewed-on: http://gerrit.chromium.org/gerrit/3418
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: <davemoore@chromium.org>
3 years agoRemove chromeos_input_method_ui.* which are no longer used, again!
Satoru Takabayashi [Tue, 28 Jun 2011 01:04:27 +0000 (18:04 -0700)]
Remove chromeos_input_method_ui.* which are no longer used, again!

The previous attempt was reverted as it broke the chromium os build
(DEPS in Chrome wasn't updated properly beforehand). This time,
it should be now safe to remove the files!

BUG=chromium-os:16550
TEST=build libcros

Change-Id: Ic723cb7d8525e9ebb38b064fe10df425a21ea829
Reviewed-on: http://gerrit.chromium.org/gerrit/3284
Reviewed-by: Yusuke Sato <yusukes@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
3 years agowm: Add WM_SET_LAYOUT_MODE to WmIpcMessageTypeToString().
Daniel Erat [Mon, 27 Jun 2011 22:34:23 +0000 (15:34 -0700)]
wm: Add WM_SET_LAYOUT_MODE to WmIpcMessageTypeToString().

Not the first time I've forgotten to do this.

BUG=none
TEST=none

Change-Id: I0d792a75d63667181b0a8ede752321cb05f6f3e9
Reviewed-on: http://gerrit.chromium.org/gerrit/3288
Reviewed-by: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
3 years agoRevert "Remove chromeos_input_method_ui.* which are no longer used."
Satoru Takabayashi [Mon, 27 Jun 2011 22:55:19 +0000 (15:55 -0700)]
Revert "Remove chromeos_input_method_ui.* which are no longer used."

This reverts commit 032b3fa48ce62b9f46d00dd939e387a7bf14008a.

The commit in question broke the chromium os tree due to a libcros
compatibility error.

BUG=none
TEST=build libcros

Change-Id: I1e2965735bc013e3fb63f92d6a4bda57340c5871
Reviewed-on: http://gerrit.chromium.org/gerrit/3271
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoRemove chromeos_input_method_ui.* which are no longer used.
Satoru Takabayashi [Fri, 24 Jun 2011 21:16:23 +0000 (14:16 -0700)]
Remove chromeos_input_method_ui.* which are no longer used.

BUG=chromium-os:16550
TEST=build libcros

Change-Id: I2b25d44b8a5b89c5655c8886d60444354705b883
Reviewed-on: http://gerrit.chromium.org/gerrit/3189
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoRemove chromeos_input_method.* which are no longer used.
Satoru Takabayashi [Fri, 24 Jun 2011 20:57:39 +0000 (13:57 -0700)]
Remove chromeos_input_method.* which are no longer used.

BUG=chromium-os:16238
TEST=build libcros

Change-Id: I55ae8d7671fbcb2f4076a0c1dff004324ce0a509
Reviewed-on: http://gerrit.chromium.org/gerrit/3186
Reviewed-by: Yusuke Sato <yusukes@chromium.org>
Tested-by: Satoru Takabayashi <satorux@chromium.org>
3 years agoDeprecate all functions in chromeos_input_method_ui.h
Satoru Takabayashi [Fri, 24 Jun 2011 20:43:47 +0000 (13:43 -0700)]
Deprecate all functions in chromeos_input_method_ui.h

We no longer use these functions.

BUG=chromium-os:16550
TEST=confirmed input methods worked as before

Change-Id: Iaf0ce5e89ddd7be6f6c84343f21ae3bfdf4a0ae8
Reviewed-on: http://gerrit.chromium.org/gerrit/3185
Tested-by: Satoru Takabayashi <satorux@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
3 years agocros: Add WM IPC message for switching layout modes.
Daniel Erat [Thu, 23 Jun 2011 22:32:30 +0000 (15:32 -0700)]
cros: Add WM IPC message for switching layout modes.

This adds a new WM_IPC_MESSAGE_WM_SET_LAYOUT_MODE message
type that Chrome can send to the window manager to request
that it switch layout modes (e.g. maximized or overlapping).

BUG=chromium-os:13963
TEST=manual

Change-Id: I829413bd426a21fb83c8ada94522df10f787efe2
Reviewed-on: http://gerrit.chromium.org/gerrit/3144
Reviewed-by: David Reveman <reveman@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>