| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/l10n_util.h" |
| 10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 11 #include "chrome/browser/net/url_fetcher.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/views/standard_layout.h" | 18 #include "chrome/browser/views/standard_layout.h" |
| 18 #include "chrome/common/l10n_util.h" | |
| 19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 20 #include "chrome/common/pref_service.h" | 20 #include "chrome/common/pref_service.h" |
| 21 #include "chrome/views/controls/button/checkbox.h" | 21 #include "chrome/views/controls/button/checkbox.h" |
| 22 #include "chrome/views/controls/label.h" | 22 #include "chrome/views/controls/label.h" |
| 23 #include "chrome/views/grid_layout.h" | 23 #include "chrome/views/grid_layout.h" |
| 24 #include "chrome/views/window/client_view.h" | 24 #include "chrome/views/window/client_view.h" |
| 25 #include "chrome/views/window/window.h" | 25 #include "chrome/views/window/window.h" |
| 26 #include "grit/chromium_strings.h" | 26 #include "grit/chromium_strings.h" |
| 27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
| 28 #include "grit/locale_settings.h" | 28 #include "grit/locale_settings.h" |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 fetcher->Start(); | 482 fetcher->Start(); |
| 483 } | 483 } |
| 484 | 484 |
| 485 void BugReportView::ReportPhishing() { | 485 void BugReportView::ReportPhishing() { |
| 486 tab_->controller().LoadURL( | 486 tab_->controller().LoadURL( |
| 487 safe_browsing_util::GeneratePhishingReportUrl( | 487 safe_browsing_util::GeneratePhishingReportUrl( |
| 488 kReportPhishingUrl, WideToUTF8(page_url_text_->GetText())), | 488 kReportPhishingUrl, WideToUTF8(page_url_text_->GetText())), |
| 489 GURL(), | 489 GURL(), |
| 490 PageTransition::LINK); | 490 PageTransition::LINK); |
| 491 } | 491 } |
| OLD | NEW |