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

Side by Side Diff: chrome/browser/ui/views/download/download_item_view_md.cc

Issue 1420053005: Move code in components/safe_browsing_db and chrome/browser/s_b/ under the safe_browsing namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_components_move
Patch Set: Remove '// namespace safe_browsing' for a small fwd decl block. Created 5 years, 1 month 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) 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/views/download/download_item_view_md.h" 5 #include "chrome/browser/ui/views/download/download_item_view_md.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 705
706 UpdateAccessibleName(); 706 UpdateAccessibleName();
707 707
708 // Calling download()->OpenDownload may delete this, so this must be 708 // Calling download()->OpenDownload may delete this, so this must be
709 // the last thing we do. 709 // the last thing we do.
710 download()->OpenDownload(); 710 download()->OpenDownload();
711 } 711 }
712 712
713 bool DownloadItemViewMd::SubmitDownloadToFeedbackService() { 713 bool DownloadItemViewMd::SubmitDownloadToFeedbackService() {
714 #if defined(FULL_SAFE_BROWSING) 714 #if defined(FULL_SAFE_BROWSING)
715 SafeBrowsingService* sb_service = g_browser_process->safe_browsing_service(); 715 safe_browsing::SafeBrowsingService* sb_service =
716 g_browser_process->safe_browsing_service();
716 if (!sb_service) 717 if (!sb_service)
717 return false; 718 return false;
718 safe_browsing::DownloadProtectionService* download_protection_service = 719 safe_browsing::DownloadProtectionService* download_protection_service =
719 sb_service->download_protection_service(); 720 sb_service->download_protection_service();
720 if (!download_protection_service) 721 if (!download_protection_service)
721 return false; 722 return false;
722 download_protection_service->feedback_service()->BeginFeedbackForDownload( 723 download_protection_service->feedback_service()->BeginFeedbackForDownload(
723 download()); 724 download());
724 // WARNING: we are deleted at this point. Don't access 'this'. 725 // WARNING: we are deleted at this point. Don't access 'this'.
725 return true; 726 return true;
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 } 1072 }
1072 } 1073 }
1073 1074
1074 SkColor DownloadItemViewMd::GetTextColor() { 1075 SkColor DownloadItemViewMd::GetTextColor() {
1075 return GetTextColorForThemeProvider(GetThemeProvider()); 1076 return GetTextColorForThemeProvider(GetThemeProvider());
1076 } 1077 }
1077 1078
1078 SkColor DownloadItemViewMd::GetDimmedTextColor() { 1079 SkColor DownloadItemViewMd::GetDimmedTextColor() {
1079 return SkColorSetA(GetTextColor(), 0xC7); 1080 return SkColorSetA(GetTextColor(), 0xC7);
1080 } 1081 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | chrome/browser/ui/webui/interstitials/interstitial_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698