OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "mojo/icu/icu.h" | 5 #include "mojo/icu/icu.h" |
6 | 6 |
7 #include "mojo/icu/constants.h" | 7 #include "mojo/icu/constants.h" |
8 #include "mojo/public/cpp/application/application_impl.h" | 8 #include "mojo/public/cpp/application/application_impl.h" |
9 #include "mojo/services/icu_data/public/interfaces/icu_data.mojom.h" | 9 #include "mojo/services/icu_data/interfaces/icu_data.mojom.h" |
10 #include "third_party/icu/source/common/unicode/putil.h" | 10 #include "third_party/icu/source/common/unicode/putil.h" |
11 #include "third_party/icu/source/common/unicode/udata.h" | 11 #include "third_party/icu/source/common/unicode/udata.h" |
12 | 12 |
13 #if !defined(OS_ANDROID) | 13 #if !defined(OS_ANDROID) |
14 #include "base/i18n/icu_util.h" | 14 #include "base/i18n/icu_util.h" |
15 #endif | 15 #endif |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 namespace icu { | 18 namespace icu { |
19 namespace { | 19 namespace { |
(...skipping 22 matching lines...) Expand all Loading... |
42 #endif | 42 #endif |
43 | 43 |
44 icu_data::ICUDataPtr icu_data; | 44 icu_data::ICUDataPtr icu_data; |
45 app->ConnectToService("mojo:icu_data", &icu_data); | 45 app->ConnectToService("mojo:icu_data", &icu_data); |
46 icu_data->Map(kDataHash, Callback()); | 46 icu_data->Map(kDataHash, Callback()); |
47 icu_data.WaitForIncomingResponse(); | 47 icu_data.WaitForIncomingResponse(); |
48 } | 48 } |
49 | 49 |
50 } // namespace icu | 50 } // namespace icu |
51 } // namespace mojo | 51 } // namespace mojo |
OLD | NEW |