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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc

Issue 2283373002: Remove unneeded scoped_refptr<>::get() on method binding (Closed)
Patch Set: Created 4 years, 3 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) 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 // Implementation of the SafeBrowsingBlockingPage class. 5 // Implementation of the SafeBrowsingBlockingPage class.
6 6
7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" 7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h"
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 IsPrefEnabled(prefs::kSafeBrowsingExtendedReportingEnabled) && 445 IsPrefEnabled(prefs::kSafeBrowsingExtendedReportingEnabled) &&
446 IsPrefEnabled(prefs::kSafeBrowsingExtendedReportingOptInAllowed); 446 IsPrefEnabled(prefs::kSafeBrowsingExtendedReportingOptInAllowed);
447 if (!enabled) 447 if (!enabled)
448 return; 448 return;
449 449
450 metrics_helper()->RecordUserInteraction( 450 metrics_helper()->RecordUserInteraction(
451 security_interstitials::MetricsHelper::EXTENDED_REPORTING_IS_ENABLED); 451 security_interstitials::MetricsHelper::EXTENDED_REPORTING_IS_ENABLED);
452 // Finish the malware details collection, send it over. 452 // Finish the malware details collection, send it over.
453 BrowserThread::PostDelayedTask( 453 BrowserThread::PostDelayedTask(
454 BrowserThread::IO, FROM_HERE, 454 BrowserThread::IO, FROM_HERE,
455 base::Bind(&ThreatDetails::FinishCollection, threat_details_.get(), 455 base::Bind(&ThreatDetails::FinishCollection, threat_details_,
456 did_proceed, num_visits), 456 did_proceed, num_visits),
457 base::TimeDelta::FromMilliseconds(delay_ms)); 457 base::TimeDelta::FromMilliseconds(delay_ms));
458 } 458 }
459 459
460 // static 460 // static
461 SafeBrowsingBlockingPage::UnsafeResourceMap* 461 SafeBrowsingBlockingPage::UnsafeResourceMap*
462 SafeBrowsingBlockingPage::GetUnsafeResourcesMap() { 462 SafeBrowsingBlockingPage::GetUnsafeResourcesMap() {
463 return g_unsafe_resource_map.Pointer(); 463 return g_unsafe_resource_map.Pointer();
464 } 464 }
465 465
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 l10n_util::GetStringFUTF16(IDS_PHISHING_V4_EXPLANATION_PARAGRAPH, 727 l10n_util::GetStringFUTF16(IDS_PHISHING_V4_EXPLANATION_PARAGRAPH,
728 GetFormattedHostName())); 728 GetFormattedHostName()));
729 load_time_data->SetString( 729 load_time_data->SetString(
730 "finalParagraph", 730 "finalParagraph",
731 l10n_util::GetStringUTF16(IDS_PHISHING_V4_PROCEED_AND_REPORT_PARAGRAPH)); 731 l10n_util::GetStringUTF16(IDS_PHISHING_V4_PROCEED_AND_REPORT_PARAGRAPH));
732 732
733 PopulateExtendedReportingOption(load_time_data); 733 PopulateExtendedReportingOption(load_time_data);
734 } 734 }
735 735
736 } // namespace safe_browsing 736 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/process_singleton_posix.cc ('k') | chrome/browser/supervised_user/supervised_user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698