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

Side by Side Diff: chrome/browser/chromeos/system/timezone_settings.cc

Issue 11734021: Roll ICU and convert include style to standard Chromium style, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | 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/system/timezone_settings.h" 5 #include "chrome/browser/chromeos/system/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/chromeos/chromeos_version.h" 10 #include "base/chromeos/chromeos_version.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "base/stl_util.h" 17 #include "base/stl_util.h"
18 #include "base/string_util.h" 18 #include "base/string_util.h"
19 #include "base/utf_string_conversions.h" 19 #include "base/utf_string_conversions.h"
20 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/render_process_host.h" 21 #include "content/public/browser/render_process_host.h"
22 #include "content/public/browser/render_view_host.h" 22 #include "content/public/browser/render_view_host.h"
23 #include "content/public/browser/render_widget_host.h" 23 #include "content/public/browser/render_widget_host.h"
24 #include "unicode/timezone.h" 24 #include "third_party/icu/public/i18n/unicode/timezone.h"
25 25
26 using content::BrowserThread; 26 using content::BrowserThread;
27 27
28 namespace { 28 namespace {
29 29
30 // The filepath to the timezone file that symlinks to the actual timezone file. 30 // The filepath to the timezone file that symlinks to the actual timezone file.
31 const char kTimezoneSymlink[] = "/var/lib/timezone/localtime"; 31 const char kTimezoneSymlink[] = "/var/lib/timezone/localtime";
32 const char kTimezoneSymlink2[] = "/var/lib/timezone/localtime2"; 32 const char kTimezoneSymlink2[] = "/var/lib/timezone/localtime2";
33 33
34 // The directory that contains all the timezone files. So for timezone 34 // The directory that contains all the timezone files. So for timezone
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 425
426 // static 426 // static
427 string16 TimezoneSettings::GetTimezoneID(const icu::TimeZone& timezone) { 427 string16 TimezoneSettings::GetTimezoneID(const icu::TimeZone& timezone) {
428 icu::UnicodeString id; 428 icu::UnicodeString id;
429 timezone.getID(id); 429 timezone.getID(id);
430 return string16(id.getBuffer(), id.length()); 430 return string16(id.getBuffer(), id.length());
431 } 431 }
432 432
433 } // namespace system 433 } // namespace system
434 } // namespace chromeos 434 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/timezone_settings.h ('k') | chrome/browser/download/download_query.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698