OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/dom_ui/dom_ui.h" | 5 #include "chrome/browser/dom_ui/dom_ui.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/json_reader.h" | 8 #include "base/json_reader.h" |
8 #include "base/json_writer.h" | 9 #include "base/json_writer.h" |
9 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
11 #include "base/values.h" | 12 #include "base/values.h" |
12 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
13 #include "chrome/common/l10n_util.h" | |
14 | 14 |
15 DOMUI::DOMUI(TabContents* contents) | 15 DOMUI::DOMUI(TabContents* contents) |
16 : hide_favicon_(false), | 16 : hide_favicon_(false), |
17 force_bookmark_bar_visible_(false), | 17 force_bookmark_bar_visible_(false), |
18 focus_location_bar_by_default_(false), | 18 focus_location_bar_by_default_(false), |
19 should_hide_url_(false), | 19 should_hide_url_(false), |
20 link_transition_type_(PageTransition::LINK), | 20 link_transition_type_(PageTransition::LINK), |
21 tab_contents_(contents) { | 21 tab_contents_(contents) { |
22 } | 22 } |
23 | 23 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 list_member->GetType() == Value::TYPE_STRING) { | 168 list_member->GetType() == Value::TYPE_STRING) { |
169 const StringValue* string_value = | 169 const StringValue* string_value = |
170 static_cast<const StringValue*>(list_member); | 170 static_cast<const StringValue*>(list_member); |
171 std::wstring wstring_value; | 171 std::wstring wstring_value; |
172 string_value->GetAsString(&wstring_value); | 172 string_value->GetAsString(&wstring_value); |
173 return wstring_value; | 173 return wstring_value; |
174 } | 174 } |
175 } | 175 } |
176 return std::wstring(); | 176 return std::wstring(); |
177 } | 177 } |
OLD | NEW |