summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/locale_change_guard.cc
Commit message (Collapse)AuthorAgeFilesLines
* Switch from SignedSettings to DeviceSettingsService.mnissler@chromium.org2012-09-011-4/+4
| | | | | | | | | | | | | | | | | DevicePolicyCache and DeviceSettingsProvider now go through DeviceSettingsService, which provides a unified and simpler API to Chrome OS device settings. BUG=chromium:139126 TEST=Unit tests, everything related to enterprise enrollment and device settings still works. TBR=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154457 Review URL: https://chromiumcodereview.appspot.com/10832035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154625 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 154457 - Switch from SignedSettings to DeviceSettingsService.dmazzoni@chromium.org2012-08-311-4/+4
| | | | | | | | | | | | | | | | | | | | | | This broke GoogleUpdateTest.StatsConsent on Linux ChromiumOS bots. Check the try jobs from the original code review - the same test failed on the Linux ChromeOS Valgrind bot. DevicePolicyCache and DeviceSettingsProvider now go through DeviceSettingsService, which provides a unified and simpler API to Chrome OS device settings. BUG=chromium:139126 TEST=Unit tests, everything related to enterprise enrollment and device settings still works. TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10832035 TBR=mnissler@chromium.org Review URL: https://chromiumcodereview.appspot.com/10918027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154483 0039d316-1c4b-4281-b951-d872f2087c98
* Switch from SignedSettings to DeviceSettingsService.mnissler@chromium.org2012-08-311-4/+4
| | | | | | | | | | | | | | | DevicePolicyCache and DeviceSettingsProvider now go through DeviceSettingsService, which provides a unified and simpler API to Chrome OS device settings. BUG=chromium:139126 TEST=Unit tests, everything related to enterprise enrollment and device settings still works. TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10832035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154457 0039d316-1c4b-4281-b951-d872f2087c98
* Moves command handling from Browser to a new object, BrowserCommandController.ben@chromium.org2012-06-271-1/+2
| | | | | | | | | | | | | | Notes: . BrowserCommandController now owns the CommandUpdater. . CommandHandler's ExecuteCommand API was massaged a little so that ExecuteCommand/IsCommandEnabled/SupportsCommand methods are always called on it, rather than the wrapping controller. . The creation of BCC was performed as a svn cp so that history for the various Exec methods could be easily carried forward. . Various "CanFoo" methods were extracted from the UpdateFooState() methods and moved to CanFoo(const Browser* browser) in browser_commands. http://crbug.com/133576 TEST=none Review URL: https://chromiumcodereview.appspot.com/10677009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144597 0039d316-1c4b-4281-b951-d872f2087c98
* RefCounted types should not have public destructors, chromeos editionrsleevi@chromium.org2012-06-251-0/+3
| | | | | | | | | | BUG=123295 TEST=none Review URL: https://chromiumcodereview.appspot.com/10386206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143987 0039d316-1c4b-4281-b951-d872f2087c98
* Change kAshNotify to kAshNotifyDisabled (default ash notifications to enabled)stevenjb@google.com2012-06-181-1/+2
| | | | | | | | | | BUG=124914 TEST=Ash notifications should be enabled by default, can be disabled with --ash-notify-disabled TBR=sadrul@chormium.org Review URL: https://chromiumcodereview.appspot.com/10540168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142730 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for Ash to Notificationsstevenjb@google.com2012-06-141-5/+8
| | | | | | | | | | | | | | | | * Adds BalloonViewAsh and moves/renames related classes. * Adds support for image icons to Notification class * Adds GetRenderViewHost() method to NotificationDelegate for fetching images BUG=124914 TEST=Tests pass. No visual changes to notifications on non-ash platforms. Web notifications show up in new tray on Ash with --ash-notify. For CloudPrintProxyService: TBR=scottbyer@chromium.org Review URL: https://chromiumcodereview.appspot.com/10537158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142172 0039d316-1c4b-4281-b951-d872f2087c98
* Prepare to support Ash notification tray:stevenjb@google.com2012-05-301-2/+2
| | | | | | | | | | | | | | * Separate status area widget from system tray * Support adding multiple trays to status area widget * Move the background animation into a common base class BUG=124914 TEST=Status area should look and behave the same as before. TBR=ben for ash/ OWNER Review URL: https://chromiumcodereview.appspot.com/10447040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139671 0039d316-1c4b-4281-b951-d872f2087c98
* Move common notification layout to base classstevenjb@google.com2012-05-241-4/+2
| | | | | | | | | | | Also, don't show tray icons for SMS or locale change BUG=124269 TEST=Set about::flags --ash-notify. Notification views should look consistent. SMS and locale change notifiations should not have visible tray icons. Review URL: https://chromiumcodereview.appspot.com/10443004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138826 0039d316-1c4b-4281-b951-d872f2087c98
* Add TrayLocale for locale change notifications.stevenjb@google.com2012-05-171-2/+17
| | | | | | | | | | TBR=ben for ash/ string changes BUG=124726 TEST=On a device wuth ash-notify enabled in about:flags, change the locale and re-login. Notification should appear. Revert should revert the change after re-login. If ignored, the notification should appear again after re-login. Closing the notification should clear it. Review URL: https://chromiumcodereview.appspot.com/10391177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137700 0039d316-1c4b-4281-b951-d872f2087c98
* Moves methods for finding browsers to browser_finder.sky@chromium.org2012-05-161-1/+2
| | | | | | | | | | | BUG=none TEST=none R=ben@chromium.org TBR=tim@chromium.org, davemoore@chromium.org, scottbyer@chromium.org, keybuk@chromium.org Review URL: https://chromiumcodereview.appspot.com/10391158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137511 0039d316-1c4b-4281-b951-d872f2087c98
* Renaming virtual setters/getters in UserManager.nkostylev@chromium.org2012-03-061-2/+2
| | | | | | | | | | | | | | | | | | Follow up CL for http://codereview.chromium.org/9348022/ * Renamed unix_hacker to CamelStyle methods from UserManager as they are not non-virtual getters and setters any more. - user_is_logged_in() - logged_in_user() - current_user_is_owner() / set_current_user_is_owner() - current_user_is_new() - downloaded_profile_image() BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/9355059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125230 0039d316-1c4b-4281-b951-d872f2087c98
* Convert chrome users of NavigationController::tab_contents() to use ↵jam@chromium.org2012-01-021-2/+3
| | | | | | | | | | GetWebContents() instead. BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/8986009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116086 0039d316-1c4b-4281-b951-d872f2087c98
* Remove PrefService::ScheduleSavePersistentPrefs and change ↵bauerb@chromium.org2011-12-271-4/+1
| | | | | | | | | | | | | SavePersistentPrefs calls to CommitPendingWrites. TBR=ncarter@chromium.org BUG=99306 TEST=none Review URL: http://codereview.chromium.org/8198007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115829 0039d316-1c4b-4281-b951-d872f2087c98
* Rename TabContents::browser_context() to GetBrowserContext and put it into ↵jam@chromium.org2011-12-211-1/+2
| | | | | | | | | the WebContents interface. BUG=98716 Review URL: http://codereview.chromium.org/9021022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115435 0039d316-1c4b-4281-b951-d872f2087c98
* Split UserMetrics into API vs. implementation. Move API to content/public.joi@chromium.org2011-12-141-3/+5
| | | | | | | | | TBR=davemoore@chromium.org BUG=98716 Review URL: http://codereview.chromium.org/8919017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114416 0039d316-1c4b-4281-b951-d872f2087c98
* Replace Callback1 with base::Callback in MessageCallback.achuith@chromium.org2011-10-261-3/+5
| | | | | | | | BUG=chromium-os:22024 TEST=tests pass. Review URL: http://codereview.chromium.org/8332025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107309 0039d316-1c4b-4281-b951-d872f2087c98
* Make NotificationService an interface in the content namespace, and switch ↵jam@chromium.org2011-10-191-4/+4
| | | | | | | | | callers to use it. Move the implementation to content/browser. Stop creating it in all child processes since it's only used in the browser. BUG=98716 Review URL: http://codereview.chromium.org/8342048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106403 0039d316-1c4b-4281-b951-d872f2087c98
* Move notification_source from content/common to content/browser/public and ↵jam@chromium.org2011-10-191-4/+4
| | | | | | | | put it into the content namespace. BUG=98716 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106203 0039d316-1c4b-4281-b951-d872f2087c98
* Profiles: Fix overlistening on LOAD_COMPLETED_MAIN_FRAME.erg@google.com2011-08-171-5/+7
| | | | | | | | | | | BUG=87457 TEST=none R=dilmah TBR=zea Review URL: http://codereview.chromium.org/7624007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97169 0039d316-1c4b-4281-b951-d872f2087c98
* Moving notification types which are chrome specific to a new header file ↵ananta@chromium.org2011-07-101-7/+8
| | | | | | | | | | | | | chrome_notification_types.h. This file lives in chrome\common. The chrome specific notifications start from NOTIFICATION_CONTENT_END which defines the end of the enum used by content to define notification types. The notificaton_type.h file in content\common has been renamed to content_notification_types.h BUG=76698 Review URL: http://codereview.chromium.org/7327007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91972 0039d316-1c4b-4281-b951-d872f2087c98
* cros: More method out-of-lining for clang plugin, more build fixes.thakis@chromium.org2011-05-151-0/+2
| | | | | | | | | | BUG=none TEST=none TBR=dpolukhin Review URL: http://codereview.chromium.org/6961012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85426 0039d316-1c4b-4281-b951-d872f2087c98
* Move UserMetrics to content.michaeln@google.com2011-04-271-1/+1
| | | | | | | | | | | | | | Just the class that provides the action logging API which is used all over the place is being moved. The UserMetrics class uses the notification system to inform the core of the user metrics system of each event, that core part is not being moved. Also take care of a TODO to remove the class methods that take a Profile* as a paramter (since Profile is verbotten in /content). BUG=78499 Review URL: http://codereview.chromium.org/6883021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83251 0039d316-1c4b-4281-b951-d872f2087c98
* Show locale change notification in previous locale.dilmah@chromium.org2011-04-181-16/+43
| | | | | | | | | BUG=chromium-os:14199 TEST=Manual Review URL: http://codereview.chromium.org/6874015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81937 0039d316-1c4b-4281-b951-d872f2087c98
* Strings for locale change notification (provided by Brian Rakowski)dilmah@chromium.org2011-04-081-5/+6
| | | | | | | | | BUG=chromium:77999 TEST=None Review URL: http://codereview.chromium.org/6815018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80922 0039d316-1c4b-4281-b951-d872f2087c98
* Update notification iconsdpolukhin@chromium.org2011-04-061-2/+2
| | | | | | | | | BUG=chromium-os:9164 TEST=Manual Review URL: http://codereview.chromium.org/6806008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80620 0039d316-1c4b-4281-b951-d872f2087c98
* Comb up ownership things.dilmah@chromium.org2011-03-161-16/+41
| | | | | | | | | | | | | | | | | | | | Current codebase contains race in using UserManager::current_user_is_owner() method. UserManager checks ownership asynchronously, so there is lapse of time when owner is logged in but UserManager::current_user_is_owner() returns false. In this CL this race is fixed for purpose of setting kOwnerLocale. Also: shorten lapse of time during which UserManager::current_user_is_owner() returns false for owner session: do this by making multi-threaded access to variable instead of posting another Task to message queue. Also: in r75988 http://codereview.chromium.org/6538098 OWNERSHIP_TAKEN notification was removed but observers of this notification were left as is. Fix it, convert observers to another notification. BUG=chromium-os:11212 TEST=Manual Review URL: http://codereview.chromium.org/6677049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78353 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Update the references of notification includes to the new content ↵tfarina@chromium.org2011-03-071-2/+2
| | | | | | | | | | | location. BUG=None TEST=None Review URL: http://codereview.chromium.org/6628058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77199 0039d316-1c4b-4281-b951-d872f2087c98
* Pick more adequate time for showing locale change notification.dilmah@chromium.org2011-03-031-38/+34
| | | | | | | | | | | (without this fix users complain that notification is shown too early). BUG=chromium-os:11839 TEST=Manual Review URL: http://codereview.chromium.org/6591067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76740 0039d316-1c4b-4281-b951-d872f2087c98
* Update the includes to the old tab_contents.hjam@chromium.org2011-03-021-1/+1
| | | | | | | TBR=avi Review URL: http://codereview.chromium.org/6596103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76552 0039d316-1c4b-4281-b951-d872f2087c98
* Make the ChromeNetworkDelegate use the ExtensionEventRouterForwarderjochen@chromium.org2011-03-011-1/+1
| | | | | | | | | BUG=73903 TEST=tests for proxy and webrequest API should still work Review URL: http://codereview.chromium.org/6598002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76372 0039d316-1c4b-4281-b951-d872f2087c98
* Do not change locale on login screen and for non-owner sessions without ↵dilmah@chromium.org2011-02-091-2/+3
| | | | | | | | | | | | | | touching kApplicationLocale. Remove behaviour (intentionally) introduced by r73799: changing locale on login screen and for non-owner sessions without touching kApplicationLocale. This behaviour was found malign. BUG=chromium-os:11802 TEST=Manual Review URL: http://codereview.chromium.org/6461002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74288 0039d316-1c4b-4281-b951-d872f2087c98
* Do not use local override for language settings: always store it into ↵dilmah@chromium.org2011-01-261-23/+10
| | | | | | | | | | | synchronized preference. BUG=chromium-os:11147 TEST=Manual Review URL: http://codereview.chromium.org/6248017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72633 0039d316-1c4b-4281-b951-d872f2087c98
* Move l10n_util to ui/baseben@chromium.org2011-01-211-1/+1
| | | | | | | | | BUG=none TEST=none TBR=brettw git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72227 0039d316-1c4b-4281-b951-d872f2087c98
* Hide private stuff into .cc filedilmah@chromium.org2011-01-211-0/+17
| | | | | | | | | | | No functionality change, just code move. BUG=None TEST=None Review URL: http://codereview.chromium.org/6257008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72152 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup of r71320 commit.dilmah@chromium.org2011-01-181-18/+57
| | | | | | | | | | | For ChromeOS: when starting session: if locale was changed (as a result of sync or because user preference differs from login locale): show notification. BUG=chromium-os:9164 TEST=Manual Review URL: http://codereview.chromium.org/6249009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71646 0039d316-1c4b-4281-b951-d872f2087c98
* For ChromeOS: when starting session:dilmah@chromium.org2011-01-131-0/+134
if locale was changed (as a result of sync or because user preference differs from login locale): show notification. BUG=chromium-os:9164 TEST=Manual Review URL: http://codereview.chromium.org/5976005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71320 0039d316-1c4b-4281-b951-d872f2087c98