| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/bug_report_view.h" | 5 #include "chrome/browser/views/bug_report_view.h" |
| 6 | 6 |
| 7 #include <iostream> | 7 #include <iostream> |
| 8 #include <fstream> | 8 #include <fstream> |
| 9 | 9 |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "chrome/app/locales/locale_settings.h" | 11 #include "chrome/app/locales/locale_settings.h" |
| 12 #include "chrome/browser/net/url_fetcher.h" |
| 12 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
| 13 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 14 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
| 14 #include "chrome/browser/tab_contents/navigation_controller.h" | 15 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 15 #include "chrome/browser/tab_contents/navigation_entry.h" | 16 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 16 #include "chrome/browser/tab_contents/tab_contents.h" | 17 #include "chrome/browser/tab_contents/tab_contents.h" |
| 17 #include "chrome/browser/url_fetcher.h" | |
| 18 #include "chrome/browser/views/standard_layout.h" | 18 #include "chrome/browser/views/standard_layout.h" |
| 19 #include "chrome/common/l10n_util.h" | 19 #include "chrome/common/l10n_util.h" |
| 20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
| 21 #include "chrome/common/pref_service.h" | 21 #include "chrome/common/pref_service.h" |
| 22 #include "chrome/views/checkbox.h" | 22 #include "chrome/views/checkbox.h" |
| 23 #include "chrome/views/client_view.h" | 23 #include "chrome/views/client_view.h" |
| 24 #include "chrome/views/grid_layout.h" | 24 #include "chrome/views/grid_layout.h" |
| 25 #include "chrome/views/label.h" | 25 #include "chrome/views/label.h" |
| 26 #include "chrome/views/Window.h" | 26 #include "chrome/views/Window.h" |
| 27 #include "net/base/escape.h" | 27 #include "net/base/escape.h" |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 } | 482 } |
| 483 | 483 |
| 484 void BugReportView::ReportPhishing() { | 484 void BugReportView::ReportPhishing() { |
| 485 tab_->controller()->LoadURL( | 485 tab_->controller()->LoadURL( |
| 486 safe_browsing_util::GeneratePhishingReportUrl( | 486 safe_browsing_util::GeneratePhishingReportUrl( |
| 487 kReportPhishingUrl, WideToUTF8(page_url_text_->GetText())), | 487 kReportPhishingUrl, WideToUTF8(page_url_text_->GetText())), |
| 488 GURL(), | 488 GURL(), |
| 489 PageTransition::LINK); | 489 PageTransition::LINK); |
| 490 } | 490 } |
| 491 | 491 |
| OLD | NEW |