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

Side by Side Diff: chromeos/settings/timezone_settings.cc

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chromeos/settings/timezone_settings.h" 5 #include "chromeos/settings/timezone_settings.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // Returns |timezone| if it is an element of |timezones_|. 276 // Returns |timezone| if it is an element of |timezones_|.
277 // Otherwise, returns a timezone from |timezones_|, if such exists, that has 277 // Otherwise, returns a timezone from |timezones_|, if such exists, that has
278 // the same rule as the given |timezone|. 278 // the same rule as the given |timezone|.
279 // Otherwise, returns NULL. 279 // Otherwise, returns NULL.
280 // Note multiple timezones with the same time zone rules may exist 280 // Note multiple timezones with the same time zone rules may exist
281 // e.g. 281 // e.g.
282 // US/Pacific == America/Los_Angeles 282 // US/Pacific == America/Los_Angeles
283 const icu::TimeZone* GetKnownTimezoneOrNull( 283 const icu::TimeZone* GetKnownTimezoneOrNull(
284 const icu::TimeZone& timezone) const; 284 const icu::TimeZone& timezone) const;
285 285
286 ObserverList<Observer> observers_; 286 base::ObserverList<Observer> observers_;
287 std::vector<icu::TimeZone*> timezones_; 287 std::vector<icu::TimeZone*> timezones_;
288 scoped_ptr<icu::TimeZone> timezone_; 288 scoped_ptr<icu::TimeZone> timezone_;
289 289
290 private: 290 private:
291 DISALLOW_COPY_AND_ASSIGN(TimezoneSettingsBaseImpl); 291 DISALLOW_COPY_AND_ASSIGN(TimezoneSettingsBaseImpl);
292 }; 292 };
293 293
294 // The TimezoneSettings implementation used in production. 294 // The TimezoneSettings implementation used in production.
295 class TimezoneSettingsImpl : public TimezoneSettingsBaseImpl { 295 class TimezoneSettingsImpl : public TimezoneSettingsBaseImpl {
296 public: 296 public:
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 462
463 // static 463 // static
464 base::string16 TimezoneSettings::GetTimezoneID(const icu::TimeZone& timezone) { 464 base::string16 TimezoneSettings::GetTimezoneID(const icu::TimeZone& timezone) {
465 icu::UnicodeString id; 465 icu::UnicodeString id;
466 timezone.getID(id); 466 timezone.getID(id);
467 return base::string16(id.getBuffer(), id.length()); 467 return base::string16(id.getBuffer(), id.length());
468 } 468 }
469 469
470 } // namespace system 470 } // namespace system
471 } // namespace chromeos 471 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/network_state_handler.h ('k') | components/autofill/core/browser/personal_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698