Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: chrome/browser/chromeos/settings/cros_settings.cc

Issue 11419184: Add public accounts to UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-upload against the correct upstream commit. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/settings/cros_settings.h" 5 #include "chrome/browser/chromeos/settings/cros_settings.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 void CrosSettings::FireObservers(const std::string& path) { 294 void CrosSettings::FireObservers(const std::string& path) {
295 DCHECK(CalledOnValidThread()); 295 DCHECK(CalledOnValidThread());
296 SettingsObserverMap::iterator observer_iterator = 296 SettingsObserverMap::iterator observer_iterator =
297 settings_observers_.find(path); 297 settings_observers_.find(path);
298 if (observer_iterator == settings_observers_.end()) 298 if (observer_iterator == settings_observers_.end())
299 return; 299 return;
300 300
301 NotificationObserverList::Iterator it(*(observer_iterator->second)); 301 NotificationObserverList::Iterator it(*(observer_iterator->second));
302 content::NotificationObserver* observer; 302 content::NotificationObserver* observer;
303 while ((observer = it.GetNext()) != NULL) { 303 while ((observer = it.GetNext()) != NULL) {
304 observer->Observe(chrome::NOTIFICATION_SYSTEM_SETTING_CHANGED, 304 if (observer) {
pastarmovj 2012/11/28 09:57:16 I don't see much sense in this. Why do you need th
bartfab (slow) 2012/11/28 12:30:17 As discussed offline: I need UserManager to be a C
305 content::Source<CrosSettings>(this), 305 observer->Observe(chrome::NOTIFICATION_SYSTEM_SETTING_CHANGED,
306 content::Details<const std::string>(&path)); 306 content::Source<CrosSettings>(this),
307 content::Details<const std::string>(&path));
308 }
307 } 309 }
308 } 310 }
309 311
310 } // namespace chromeos 312 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698