summaryrefslogtreecommitdiffstats
path: root/chromeos
Commit message (Collapse)AuthorAgeFilesLines
* If requested, report network interfaces to management server.mnissler@chromium.org2013-07-122-1/+18
| | | | | | | | | | | | | | This adds a device policy that allows the administrator to request Chrome OS devices to report a list of their network interfaces and corresponding device hardware addresses to the device management server as part of device status reporting. BUG=chromium:218410 TEST=unit test Review URL: https://chromiumcodereview.appspot.com/18348016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211432 0039d316-1c4b-4281-b951-d872f2087c98
* Convert InternetOptionsHandler to use NetworkStateHandlerstevenjb@chromium.org2013-07-1213-51/+182
| | | | | | | | | | | BUG=189080 For chrome/browser/ui/webui/options/options_ui.cc TBR=pneubeck@chromium.org Review URL: https://codereview.chromium.org/17995002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211416 0039d316-1c4b-4281-b951-d872f2087c98
* Add NetworkDeviceHandler::RequestRefreshIPConfigsstevenjb@chromium.org2013-07-126-59/+185
| | | | | | | | | | | This is needed for https://codereview.chromium.org/17995002/. BUG=189080 R=armansito@chromium.org, pneubeck@chromium.org Review URL: https://codereview.chromium.org/18873007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211410 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Remove unused 'type' argument from CrosDisksClient::Mounthashimoto@chromium.org2013-07-125-11/+1
| | | | | | | | | | BUG=None TEST=build R=satorux@chromium.org Review URL: https://codereview.chromium.org/18556006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211358 0039d316-1c4b-4281-b951-d872f2087c98
* dbus: Add FakeShillDeviceClient, which does nothing so farsatorux@chromium.org2013-07-125-2/+196
| | | | | | | | | | BUG=126719 TEST=none R=hashimoto@chromium.org Review URL: https://codereview.chromium.org/18200006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211346 0039d316-1c4b-4281-b951-d872f2087c98
* Filter out the unknown type audio node. If the device type is "UNKNOWN", ↵jennyz@chromium.org2013-07-121-2/+3
| | | | | | | | | | | these devices should not be exposed to user. BUG=257115 TBR=stevenjb Review URL: https://chromiumcodereview.appspot.com/18047007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211312 0039d316-1c4b-4281-b951-d872f2087c98
* Migrate to use SetOutputNodeVolume and SetInputNodeGain cras apis. jennyz@chromium.org2013-07-126-171/+86
| | | | | | | | | | | Based on our discussion about cras apis with cras team, chrome will switch to use per node volume/gain set apis, and do not use the apis for setting system output volume and input gain. This should simplify the flow for switching active input/output audio devices and solve the racing problems during the switch related to previous work around. BUG=244597 Review URL: https://chromiumcodereview.appspot.com/18641003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211282 0039d316-1c4b-4281-b951-d872f2087c98
* Move PathExists to base namespace.brettw@chromium.org2013-07-113-3/+3
| | | | | | | | | BUG= TBR=jam@chromium.org Review URL: https://codereview.chromium.org/18286004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211147 0039d316-1c4b-4281-b951-d872f2087c98
* Automated Commit: Committing new LKGM version 4384.0.0 for chromeos.chromeos-lkgm@google.com2013-07-111-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211039 0039d316-1c4b-4281-b951-d872f2087c98
* Start PowerManagerClientStub timer only if the stub flag is setjfweitz@chromium.org2013-07-111-4/+9
| | | | | | | | BUG=NONE Review URL: https://chromiumcodereview.appspot.com/18292026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211005 0039d316-1c4b-4281-b951-d872f2087c98
* Check for duplicate FavoriteState entriesstevenjb@chromium.org2013-07-111-3/+14
| | | | | | | | | BUG=251922 R=pneubeck@chromium.org Review URL: https://codereview.chromium.org/18272019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210989 0039d316-1c4b-4281-b951-d872f2087c98
* Some network connect related cleanupstevenjb@chromium.org2013-07-108-34/+34
| | | | | | | | | | | | | | | | This is a bunch of cleanup for the internet_options_handler conversion to NetworkHandler from NetworkLibrary. None of these changes are directly related to that change, just some code cleanup to make things easier to read. BUG=189080 R=pneubeck@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210934 Review URL: https://codereview.chromium.org/18536012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210946 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 210934 "Some network connect related cleanup"akalin@chromium.org2013-07-108-34/+34
| | | | | | | | | | | | | | | | | | | | > Some network connect related cleanup > > This is a bunch of cleanup for the internet_options_handler conversion > to NetworkHandler from NetworkLibrary. None of these changes are > directly related to that change, just some code cleanup to make things > easier to read. > > BUG=189080 > R=pneubeck@chromium.org > > Review URL: https://codereview.chromium.org/18536012 TBR=stevenjb@chromium.org Review URL: https://codereview.chromium.org/18915006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210939 0039d316-1c4b-4281-b951-d872f2087c98
* Some network connect related cleanupstevenjb@chromium.org2013-07-108-34/+34
| | | | | | | | | | | | | | This is a bunch of cleanup for the internet_options_handler conversion to NetworkHandler from NetworkLibrary. None of these changes are directly related to that change, just some code cleanup to make things easier to read. BUG=189080 R=pneubeck@chromium.org Review URL: https://codereview.chromium.org/18536012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210934 0039d316-1c4b-4281-b951-d872f2087c98
* Implement NetworkConfigurationHandler::SetProperties with Service.SetPropertiesstevenjb@chromium.org2013-07-104-36/+65
| | | | | | | | | BUG=258633 R=pneubeck@chromium.org Review URL: https://codereview.chromium.org/18965005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210920 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for Service.SetPropertiesstevenjb@chromium.org2013-07-1012-130/+222
| | | | | | | | | BUG=258633 R=satorux@chromium.org Review URL: https://codereview.chromium.org/18619006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210899 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate inconsistent is_null check from Shill stubsstevenjb@chromium.org2013-07-107-98/+45
| | | | | | | | | | | | The non-stub code does not do any is_null checks before calling the callbacks, so the stub code should be consistent. BUG=None R=hashimoto@chromium.org, satorux@chromium.org Review URL: https://codereview.chromium.org/18355007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210867 0039d316-1c4b-4281-b951-d872f2087c98
* Automated Commit: Committing new LKGM version 4379.0.0 for chromeos.chromeos-lkgm@google.com2013-07-101-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210770 0039d316-1c4b-4281-b951-d872f2087c98
* SimUnlockUI: Switch over to use NetworkStateHandlerarmansito@chromium.org2013-07-104-3/+41
| | | | | | | | | | | | This removes the direct network library dependency for SimUnlockUI. The code now obtains SIM lock information from DeviceState and the SIM specific shill DBus calls are made directly through cros network functions. BUG=249530 Review URL: https://chromiumcodereview.appspot.com/17697002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210745 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up kiosk app mode flags.xiyuan@chromium.org2013-07-102-4/+0
| | | | | | | | | | | | Remove kiosk app mode flags and the underlying switches "disable-app-mode" and "disable-fullscreen-app". The feature is on by default for a while and the disable flags are no longer needed. BUG=none Review URL: https://chromiumcodereview.appspot.com/18655006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210716 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Use dbus::PopDataAsValue to initialize DiskInfohashimoto@chromium.org2013-07-091-90/+50
| | | | | | | | | BUG=None TEST=chromeos_unittests Review URL: https://chromiumcodereview.appspot.com/18815003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210663 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up shill error handlingstevenjb@chromium.org2013-07-098-100/+96
| | | | | | | | | BUG=none R=gspencer@chromium.org Review URL: https://codereview.chromium.org/18344015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210644 0039d316-1c4b-4281-b951-d872f2087c98
* This updates and cleans up the chrome diagnostics mode so that it includes ↵gspencer@chromium.org2013-07-092-0/+4
| | | | | | | | | | | | | | | | | | | | | | | some integrity checking for NSS databases on ChromeOS. Added the concept of an "outcome code" that would allow individual tests to provide specific information about what the failure was. Also, removed references to wstring, and generally made error messages more consistent in style. Added two more modes (besides human-readable) for output of the results so that it could more easily be used for input to a program (--diagnostics-format=machine), and so that the output can be sent to the chrome log instead of creating/using a console at all (--diagnostics-format=log). Rearranged the code so that diagnostics mode can be run in a mode that doesn't require internationalization code to be initialized (or indeed provide any output mode), so that it could be still be run early and let chrome continue running and deliver results to the user later when more UI layers are available. Removed building of diagnostics code from the Android build. These changes are in preparation for adding a "recovery" option to attempt to recover from profile corruption on ChromeOS when we detect that chrome has crashed and restarted. TBR=cpu@chromium.org BUG=chromium:236093 Review URL: https://chromiumcodereview.appspot.com/16905002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210617 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused code from NetworkLibrary.pneubeck@chromium.org2013-07-093-32/+0
| | | | | | | | BUG=NONE Review URL: https://chromiumcodereview.appspot.com/18635002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210594 0039d316-1c4b-4281-b951-d872f2087c98
* Fix gcc 4.7 compilation errors in chromeos_unittestsbenchan@chromium.org2013-07-091-1/+8
| | | | | | | | | | | | | | | | | | gcc 4.7 gives the following error when compiling chromeos_unittests on Linux (with chromeos=1): ../../chromeos/dbus/cros_disks_client_unittest.cc: In member function 'virtual void chromeos::CrosDisksClientTest_DiskInfo_Test::TestBody()': ../../chromeos/dbus/cros_disks_client_unittest.cc:125:3: error: converting 'false' to pointer type for argument 1 of 'char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)' [-Werror=conversion-null] See googletest issue 322 (https://code.google.com/p/googletest/issues/detail?id=322) for details. This CL works around the issue by switching the unit test from EXPECT_EQ(false, something) to EXPECT_TRUE(false == something) BUG=None TEST=Build and run chromeos_unittests with gcc 4.7 Review URL: https://chromiumcodereview.appspot.com/18339011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210529 0039d316-1c4b-4281-b951-d872f2087c98
* Automated Commit: Committing new LKGM version 4376.0.0 for chromeos.chromeos-lkgm@google.com2013-07-091-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210509 0039d316-1c4b-4281-b951-d872f2087c98
* Automated Commit: Committing new LKGM version 4371.0.0 for chromeos.chromeos-lkgm@google.com2013-07-081-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210354 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Add test for DiskInfo::DiskInfo()hashimoto@chromium.org2013-07-083-13/+156
| | | | | | | | | | | | Code stack of CrosDisksClient, DiskMountManager and FileManagerEventRouter need some refactoring, but most of the code lack tests. BUG=None TEST=chromeos_unittests R=satorux@chromium.org Review URL: https://codereview.chromium.org/18734002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210350 0039d316-1c4b-4281-b951-d872f2087c98
* Fix dict key handling in ShillDeviceClientStub.mnissler@chromium.org2013-07-051-5/+7
| | | | | | | | | | | Consistently use the -WithouthPathExpansion variants. Previous code would fail on properties containing periods such as Cellular.MEID. BUG=None Review URL: https://chromiumcodereview.appspot.com/18685003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210290 0039d316-1c4b-4281-b951-d872f2087c98
* Automated Commit: Committing new LKGM version 4359.0.0 for chromeos.chromeos-lkgm@google.com2013-07-051-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210265 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Replace base::Callback<void()> typedefs in CrosDisksClient with ↵hashimoto@chromium.org2013-07-044-39/+34
| | | | | | | | | | | | base::Closure BUG=None TEST=chromeos_unittests R=satorux@chromium.org Review URL: https://codereview.chromium.org/18609003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210118 0039d316-1c4b-4281-b951-d872f2087c98
* Remove touchpad three-finger-swipe.achuith@chromium.org2013-07-042-5/+0
| | | | | | | | | BUG=223480 TEST=manual Review URL: https://chromiumcodereview.appspot.com/18153013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210078 0039d316-1c4b-4281-b951-d872f2087c98
* Implement NetworkDeviceHandlerarmansito@chromium.org2013-07-036-0/+626
| | | | | | | | | | | | | This CL adds NetworkDeviceHandler, which provides hooks to make calls to Shill Device API methods. This initial implementation provides basic error translation and does no state keeping, providing a thin wrapper for the DBus layer. BUG=254125 Review URL: https://chromiumcodereview.appspot.com/18457002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210049 0039d316-1c4b-4281-b951-d872f2087c98
* Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*"rsleevi@chromium.org2013-07-031-2/+2
| | | | | | | | | | | | Fixes a number of cases either not caught by the automated tool or that have recently regressed. BUG=110610 TBR=darin Review URL: https://codereview.chromium.org/18308004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210048 0039d316-1c4b-4281-b951-d872f2087c98
* Resolve certificate references in ONC by PEM.pneubeck@chromium.org2013-07-0341-202/+827
| | | | | | | | | | | | | | | | | | | | | | | | | In ONC, Server and CA certificates are referenced by GUID. Before, the GUID was stored in the nickname of each certificate and used to identify each certificate. After this change, the GUID is resolved and replaced by the PEM encoding of the certificate during import. The nickname is not used. This commit only affects Server and CA certificates (including IssuerCARef in CertificatePatterns). Client certificates are still identified by GUID. This CL also - uses the new *CaCertPEMProperty fields of Shill. - prepares for a list of CaCerts (for EAP, IPsec and OpenVPN) Side-effect of this CL: IssuerCARef is stored in the UIData service-property in Shill. Because this CL replaces IssuerCARef by IssuerCAPEMs, IssuerCARef entries of old UIData properties are ignored. This may break network configurations which were configured via chrome://net-internals. Reimporting such a configuration will fix the problem. BUG=208986 TBR=eroman@chromium.org (for net_internals_ui.cc) Review URL: https://chromiumcodereview.appspot.com/16946002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210019 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused NetworkLibrary::GetIPConfigsAndBlock.pneubeck@chromium.org2013-07-0317-245/+0
| | | | | | | | | | This also removes code that was solely used by NetworkLibrary::GetIPConfigsAndBlock. BUG=NONE Review URL: https://chromiumcodereview.appspot.com/18541004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209975 0039d316-1c4b-4281-b951-d872f2087c98
* Fix leak of FavoriteState objects in NetworkStateHandler.pneubeck@chromium.org2013-07-031-0/+1
| | | | | | | | | BUG=251922 TBR=finnur@chromium.org Review URL: https://codereview.chromium.org/18600006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209973 0039d316-1c4b-4281-b951-d872f2087c98
* Replace GetService by ConfigureService.pneubeck@chromium.org2013-07-032-4/+4
| | | | | | | | | | | | | GetService should in particular not be called for VPNs and it seems that ConfigureService works as well for the other network types. This code isn't enabled by default (it's behind a flag), so this change is safe. BUG=213802 TBR=gspencer@chromium.org Review URL: https://chromiumcodereview.appspot.com/18511005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209960 0039d316-1c4b-4281-b951-d872f2087c98
* Support network Favorite/Preferred list and removalstevenjb@chromium.org2013-07-0326-90/+514
| | | | | | | | | | | | | | | | This CL tracks Manager.ServiceCompleteList to provide a list of favorite/preferred networks to the UI. It uses Service.GetLoadableProfileEntries to remove preferred services. A test UI is provided in the status area (behind a flag). Stub behavior is updated to enable testing the UI on Linux. BUG=251922 Review URL: https://chromiumcodereview.appspot.com/17778003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209950 0039d316-1c4b-4281-b951-d872f2087c98
* Use system_api kCryptohomeAsyncAddKey constantnkostylev@chromium.org2013-07-031-3/+1
| | | | | | | | | BUG=243342 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/18536002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209933 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Remove |device_path| argument from ↵hashimoto@chromium.org2013-07-034-14/+9
| | | | | | | | | | | | | | CrosDiskClient::FormatDeviceCallback The callback always receives the argument passed to FormatDevice() BUG=None TEST=chromeos_unittests R=satorux@chromium.org Review URL: https://codereview.chromium.org/18424003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209927 0039d316-1c4b-4281-b951-d872f2087c98
* Automated Commit: Committing new LKGM version 4351.0.0 for chromeos.chromeos-lkgm@google.com2013-07-031-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209911 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Use native D-Bus args for HandleVideoActivity.derat@chromium.org2013-07-035-41/+6
| | | | | | | | | | | | | | This updates HandleVideoActivity D-Bus method calls to the power manager to send a single "is_fullscreen" boolean argument instead of the heavier-weight protocol buffer that was used before. Doing so shortens some code and allows the removal of an old protobuf build target. BUG=none Review URL: https://chromiumcodereview.appspot.com/18385003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209861 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Remove PowerSupplyStatus struct.derat@chromium.org2013-07-035-181/+49
| | | | | | | | | | | | This removes the PowerSupplyStatus struct in favor of directly using PowerSupplyProperties protocol buffers sent by the power manager. BUG=254173 Review URL: https://chromiumcodereview.appspot.com/18307002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209830 0039d316-1c4b-4281-b951-d872f2087c98
* Implement NetworkConfigurationHandler::RemoveConfiguration correctlystevenjb@chromium.org2013-07-029-28/+283
| | | | | | | | | | | | See issue for discussion of implementation notes, specifically comment #5. BUG=251922 R=gspencer@chromium.org, pneubeck@chromium.org Review URL: https://codereview.chromium.org/18034014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209793 0039d316-1c4b-4281-b951-d872f2087c98
* Move vpn onc constants to more specific namespaces.pneubeck@chromium.org2013-07-028-132/+143
| | | | | | | | | | | Moves constants to onc::ipsec and onc::openvpn namespaces. Mostly a trivial refactoring, only vpn_config_view.cc has a small logic change. BUG=NONE Review URL: https://chromiumcodereview.appspot.com/18312006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209769 0039d316-1c4b-4281-b951-d872f2087c98
* Automated Commit: Committing new LKGM version 4347.0.0 for chromeos.chromeos-lkgm@google.com2013-07-021-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209634 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Change CrosDisksClient::Unmount's callback type to base::Closurehashimoto@chromium.org2013-07-025-33/+30
| | | | | | | | | | | | CrosDisksClient::Unmount() has been just passing the argument to the callback. BUG=None TEST=chromeos_unittests R=satorux@chromium.org Review URL: https://codereview.chromium.org/18472002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209632 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Hangul IME with migration.nona@chromium.org2013-07-022-4/+3
| | | | | | | | | | | | | | | | | | | New Hangul IME has 5 input method engine which has different keyboard layouts. Old Hangul IME works them with specifying the configuration. So migrated keyboard will be selected based on current configuration. And new Hangul IME has alphanumeric input mode and it can be switched with HANGUL key. So that Korean keyboard layout is no longer necessary. We can ignore the case that the user enables ONLY Korean keyboard layout. Korean keyboard layout is subset of US layout and only useful with Hangul IME. Even there is the case active keyboard list will be fall backed to US layout. BUG=None TEST=Manually checked on link Review URL: https://chromiumcodereview.appspot.com/18001004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209627 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_util::Delete to the base namespacebrettw@chromium.org2013-07-012-2/+2
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/16950028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209475 0039d316-1c4b-4281-b951-d872f2087c98