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

Side by Side Diff: chrome/browser/ui/website_settings/website_settings.cc

Issue 149643010: Cleanup: Move kChromeUIScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/website_settings/website_settings.h" 5 #include "chrome/browser/ui/website_settings/website_settings.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 } 288 }
289 289
290 void WebsiteSettings::OnUIClosing() { 290 void WebsiteSettings::OnUIClosing() {
291 if (show_info_bar_) 291 if (show_info_bar_)
292 WebsiteSettingsInfoBarDelegate::Create(infobar_service_); 292 WebsiteSettingsInfoBarDelegate::Create(infobar_service_);
293 } 293 }
294 294
295 void WebsiteSettings::Init(Profile* profile, 295 void WebsiteSettings::Init(Profile* profile,
296 const GURL& url, 296 const GURL& url,
297 const content::SSLStatus& ssl) { 297 const content::SSLStatus& ssl) {
298 if (url.SchemeIs(chrome::kChromeUIScheme)) { 298 if (url.SchemeIs(content::kChromeUIScheme)) {
299 site_identity_status_ = SITE_IDENTITY_STATUS_INTERNAL_PAGE; 299 site_identity_status_ = SITE_IDENTITY_STATUS_INTERNAL_PAGE;
300 site_identity_details_ = 300 site_identity_details_ =
301 l10n_util::GetStringUTF16(IDS_PAGE_INFO_INTERNAL_PAGE); 301 l10n_util::GetStringUTF16(IDS_PAGE_INFO_INTERNAL_PAGE);
302 site_connection_status_ = SITE_CONNECTION_STATUS_INTERNAL_PAGE; 302 site_connection_status_ = SITE_CONNECTION_STATUS_INTERNAL_PAGE;
303 return; 303 return;
304 } 304 }
305 305
306 scoped_refptr<net::X509Certificate> cert; 306 scoped_refptr<net::X509Certificate> cert;
307 307
308 // Identity section. 308 // Identity section.
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 if (visited_before_today) { 680 if (visited_before_today) {
681 first_visit_text = l10n_util::GetStringFUTF16( 681 first_visit_text = l10n_util::GetStringFUTF16(
682 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY, 682 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY,
683 base::TimeFormatShortDate(first_visit)); 683 base::TimeFormatShortDate(first_visit));
684 } else { 684 } else {
685 first_visit_text = l10n_util::GetStringUTF16( 685 first_visit_text = l10n_util::GetStringUTF16(
686 IDS_PAGE_INFO_SECURITY_TAB_FIRST_VISITED_TODAY); 686 IDS_PAGE_INFO_SECURITY_TAB_FIRST_VISITED_TODAY);
687 } 687 }
688 ui_->SetFirstVisit(first_visit_text); 688 ui_->SetFirstVisit(first_visit_text);
689 } 689 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar/origin_chip_view.cc ('k') | chrome/browser/ui/website_settings/website_settings_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698