| 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" |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 std::string mime_type("multipart/form-data; boundary="); | 478 std::string mime_type("multipart/form-data; boundary="); |
| 479 mime_type += mime_boundary; | 479 mime_type += mime_boundary; |
| 480 fetcher->set_upload_data(mime_type, post_body); | 480 fetcher->set_upload_data(mime_type, post_body); |
| 481 fetcher->Start(); | 481 fetcher->Start(); |
| 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 PageTransition::LINK); | 489 PageTransition::LINK); |
| 489 } | 490 } |
| 490 | 491 |
| OLD | NEW |