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

Side by Side Diff: chrome/browser/custom_home_pages_table_model.cc

Issue 3145001: FBTF: Clean up task.h in x11_util.h and header usage in some delegates. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: more Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/custom_home_pages_table_model.h" 5 #include "chrome/browser/custom_home_pages_table_model.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "app/table_model_observer.h" 9 #include "app/table_model_observer.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/browser.h" 12 #include "chrome/browser/browser.h"
12 #include "chrome/browser/browser_list.h" 13 #include "chrome/browser/browser_list.h"
13 #include "chrome/browser/pref_service.h" 14 #include "chrome/browser/pref_service.h"
14 #include "chrome/browser/profile.h" 15 #include "chrome/browser/profile.h"
15 #include "chrome/browser/tab_contents/tab_contents.h" 16 #include "chrome/browser/tab_contents/tab_contents.h"
16 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
17 #include "chrome/common/url_constants.h" 18 #include "chrome/common/url_constants.h"
18 #include "gfx/codec/png_codec.h" 19 #include "gfx/codec/png_codec.h"
19 #include "grit/app_resources.h" 20 #include "grit/app_resources.h"
20 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 return NULL; 206 return NULL;
206 } 207 }
207 208
208 std::wstring CustomHomePagesTableModel::FormattedURL(int row) const { 209 std::wstring CustomHomePagesTableModel::FormattedURL(int row) const {
209 std::wstring languages = 210 std::wstring languages =
210 UTF8ToWide(profile_->GetPrefs()->GetString(prefs::kAcceptLanguages)); 211 UTF8ToWide(profile_->GetPrefs()->GetString(prefs::kAcceptLanguages));
211 std::wstring url(net::FormatUrl(entries_[row].url, languages)); 212 std::wstring url(net::FormatUrl(entries_[row].url, languages));
212 base::i18n::GetDisplayStringInLTRDirectionality(&url); 213 base::i18n::GetDisplayStringInLTRDirectionality(&url);
213 return url; 214 return url;
214 } 215 }
OLDNEW
« no previous file with comments | « chrome/browser/content_setting_bubble_model.cc ('k') | chrome/browser/debugger/devtools_sanity_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698