OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/renderer/net/net_error_helper.h" | 5 #include "chrome/renderer/net/net_error_helper.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
12 #include "base/metrics/field_trial.h" | |
mmenke
2014/03/28 14:54:02
nit: Not needed.
Elly Fong-Jones
2014/03/28 15:23:37
Done.
| |
12 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
13 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
14 #include "base/values.h" | 15 #include "base/values.h" |
15 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/localized_error.h" | 17 #include "chrome/common/localized_error.h" |
17 #include "chrome/common/net/net_error_info.h" | 18 #include "chrome/common/net/net_error_info.h" |
18 #include "chrome/common/render_messages.h" | 19 #include "chrome/common/render_messages.h" |
19 #include "chrome/renderer/net/error_cache_load.h" | 20 #include "chrome/renderer/net/error_cache_load.h" |
20 #include "content/public/common/content_client.h" | 21 #include "content/public/common/content_client.h" |
21 #include "content/public/common/url_constants.h" | 22 #include "content/public/common/url_constants.h" |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
271 if (!response.isNull() && response.httpStatusCode() == 200) { | 272 if (!response.isNull() && response.httpStatusCode() == 200) { |
272 core_.OnNavigationCorrectionsFetched( | 273 core_.OnNavigationCorrectionsFetched( |
273 data, render_frame()->GetRenderView()->GetAcceptLanguages(), | 274 data, render_frame()->GetRenderView()->GetAcceptLanguages(), |
274 LocaleIsRTL()); | 275 LocaleIsRTL()); |
275 } else { | 276 } else { |
276 core_.OnNavigationCorrectionsFetched( | 277 core_.OnNavigationCorrectionsFetched( |
277 "", render_frame()->GetRenderView()->GetAcceptLanguages(), | 278 "", render_frame()->GetRenderView()->GetAcceptLanguages(), |
278 LocaleIsRTL()); | 279 LocaleIsRTL()); |
279 } | 280 } |
280 } | 281 } |
OLD | NEW |