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

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

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: 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/page_info_model.h" 5 #include "chrome/browser/page_info_model.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/i18n/time_formatting.h" 11 #include "base/i18n/time_formatting.h"
12 #include "base/string_number_conversions.h" 12 #include "base/string_number_conversions.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/cert_store.h" 14 #include "chrome/browser/cert_store.h"
15 #include "chrome/browser/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/browser/profile.h" 16 #include "chrome/browser/profile.h"
17 #include "chrome/browser/ssl/ssl_manager.h" 17 #include "chrome/browser/ssl/ssl_manager.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "grit/generated_resources.h" 19 #include "grit/generated_resources.h"
20 #include "net/base/cert_status_flags.h" 20 #include "net/base/cert_status_flags.h"
21 #include "net/base/ssl_connection_status_flags.h" 21 #include "net/base/ssl_connection_status_flags.h"
22 #include "net/base/ssl_cipher_suite_names.h" 22 #include "net/base/ssl_cipher_suite_names.h"
23 #include "net/base/x509_certificate.h" 23 #include "net/base/x509_certificate.h"
24 24
25 PageInfoModel::PageInfoModel(Profile* profile, 25 PageInfoModel::PageInfoModel(Profile* profile,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY, 237 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY,
238 WideToUTF16(base::TimeFormatShortDate(first_visit))))); 238 WideToUTF16(base::TimeFormatShortDate(first_visit)))));
239 } 239 }
240 observer_->ModelChanged(); 240 observer_->ModelChanged();
241 } 241 }
242 242
243 // static 243 // static
244 void PageInfoModel::RegisterPrefs(PrefService* prefs) { 244 void PageInfoModel::RegisterPrefs(PrefService* prefs) {
245 prefs->RegisterDictionaryPref(prefs::kPageInfoWindowPlacement); 245 prefs->RegisterDictionaryPref(prefs::kPageInfoWindowPlacement);
246 } 246 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698