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 "services/icu_data/icu_data.mojom.h" | 9 #include "services/icu_data/icu_data.mojom.h" |
10 #include "third_party/icu/source/common/unicode/putil.h" | 10 #include "third_party/icu/source/common/unicode/putil.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #if !defined(OS_ANDROID) | 37 #if !defined(OS_ANDROID) |
38 // On desktop platforms, the icu data table is stored in a file on disk, which | 38 // On desktop platforms, the icu data table is stored in a file on disk, which |
39 // can be loaded using base. | 39 // can be loaded using base. |
40 base::i18n::InitializeICU(); | 40 base::i18n::InitializeICU(); |
41 return; | 41 return; |
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.WaitForIncomingMethodCall(); | 47 icu_data.WaitForIncomingResponse(); |
48 } | 48 } |
49 | 49 |
50 } // namespace icu | 50 } // namespace icu |
51 } // namespace mojo | 51 } // namespace mojo |
OLD | NEW |