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

Side by Side Diff: chrome/browser/ui/views/toolbar/site_chip_view.cc

Issue 104043010: Cleanup: Move kFileSystemScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/web_applications/web_app.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/browser/ui/views/toolbar/site_chip_view.h" 5 #include "chrome/browser/ui/views/toolbar/site_chip_view.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 231 }
232 232
233 // These internal-ish debugging-style schemes we don't expect users 233 // These internal-ish debugging-style schemes we don't expect users
234 // to see. In these cases, the site chip will display the first 234 // to see. In these cases, the site chip will display the first
235 // part of the full URL. 235 // part of the full URL.
236 if (url.SchemeIs(chrome::kBlobScheme) || 236 if (url.SchemeIs(chrome::kBlobScheme) ||
237 url.SchemeIs(chrome::kChromeDevToolsScheme) || 237 url.SchemeIs(chrome::kChromeDevToolsScheme) ||
238 url.SchemeIs(chrome::kChromeNativeScheme) || 238 url.SchemeIs(chrome::kChromeNativeScheme) ||
239 url.SchemeIs(chrome::kDataScheme) || 239 url.SchemeIs(chrome::kDataScheme) ||
240 url.SchemeIs(chrome::kFileScheme) || 240 url.SchemeIs(chrome::kFileScheme) ||
241 url.SchemeIs(chrome::kFileSystemScheme) || 241 url.SchemeIs(content::kFileSystemScheme) ||
242 url.SchemeIs(content::kGuestScheme) || 242 url.SchemeIs(content::kGuestScheme) ||
243 url.SchemeIs(content::kJavaScriptScheme) || 243 url.SchemeIs(content::kJavaScriptScheme) ||
244 url.SchemeIs(content::kMailToScheme) || 244 url.SchemeIs(content::kMailToScheme) ||
245 url.SchemeIs(content::kMetadataScheme) || 245 url.SchemeIs(content::kMetadataScheme) ||
246 url.SchemeIs(content::kSwappedOutScheme)) { 246 url.SchemeIs(content::kSwappedOutScheme)) {
247 std::string truncated_url; 247 std::string truncated_url;
248 base::TruncateUTF8ToByteSize(url.spec(), 1000, &truncated_url); 248 base::TruncateUTF8ToByteSize(url.spec(), 1000, &truncated_url);
249 return base::UTF8ToUTF16(truncated_url); 249 return base::UTF8ToUTF16(truncated_url);
250 } 250 }
251 251
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 // Note: When OnSafeBrowsingHit would be called, OnSafeBrowsingMatch will 505 // Note: When OnSafeBrowsingHit would be called, OnSafeBrowsingMatch will
506 // have already been called. 506 // have already been called.
507 void SiteChipView::OnSafeBrowsingHit( 507 void SiteChipView::OnSafeBrowsingHit(
508 const SafeBrowsingUIManager::UnsafeResource& resource) {} 508 const SafeBrowsingUIManager::UnsafeResource& resource) {}
509 509
510 void SiteChipView::OnSafeBrowsingMatch( 510 void SiteChipView::OnSafeBrowsingMatch(
511 const SafeBrowsingUIManager::UnsafeResource& resource) { 511 const SafeBrowsingUIManager::UnsafeResource& resource) {
512 OnChanged(); 512 OnChanged();
513 } 513 }
514 514
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/web_applications/web_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698