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

Side by Side Diff: chrome/browser/bug_report_util.cc

Issue 2819063: Cleanup: Remove unneeded headers from app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: forward declare Created 10 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/bug_report_util.h" 5 #include "chrome/browser/bug_report_util.h"
6 6
7 #include "app/l10n_util.h" 7 #include <string>
8
8 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/browser_process_impl.h" 12 #include "chrome/browser/browser_process_impl.h"
11 #include "chrome/browser/profile.h" 13 #include "chrome/browser/profile.h"
12 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 14 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
13 #include "chrome/browser/tab_contents/tab_contents.h" 15 #include "chrome/browser/tab_contents/tab_contents.h"
14 #include "chrome/common/chrome_version_info.h" 16 #include "chrome/common/chrome_version_info.h"
15 #include "chrome/common/net/url_fetcher.h" 17 #include "chrome/common/net/url_fetcher.h"
16 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
17 #include "grit/locale_settings.h" 19 #include "grit/locale_settings.h"
18 #include "net/url_request/url_request_status.h" 20 #include "net/url_request/url_request_status.h"
19 #include "unicode/locid.h" 21 #include "unicode/locid.h"
20 22
21 #include <string>
22
23 namespace { 23 namespace {
24 24
25 const int kBugReportVersion = 1; 25 const int kBugReportVersion = 1;
26 26
27 const char kReportPhishingUrl[] = 27 const char kReportPhishingUrl[] =
28 "http://www.google.com/safebrowsing/report_phish/"; 28 "http://www.google.com/safebrowsing/report_phish/";
29 29
30 // URL to post bug reports to. 30 // URL to post bug reports to.
31 const char* const kBugReportPostUrl = 31 const char* const kBugReportPostUrl =
32 "https://www.google.com/tools/feedback/chrome/__submit"; 32 "https://www.google.com/tools/feedback/chrome/__submit";
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 // static 232 // static
233 void BugReportUtil::ReportPhishing(TabContents* currentTab, 233 void BugReportUtil::ReportPhishing(TabContents* currentTab,
234 const std::string& phishing_url) { 234 const std::string& phishing_url) {
235 currentTab->controller().LoadURL( 235 currentTab->controller().LoadURL(
236 safe_browsing_util::GeneratePhishingReportUrl( 236 safe_browsing_util::GeneratePhishingReportUrl(
237 kReportPhishingUrl, phishing_url), 237 kReportPhishingUrl, phishing_url),
238 GURL(), 238 GURL(),
239 PageTransition::LINK); 239 PageTransition::LINK);
240 } 240 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_theme_pack_unittest.cc ('k') | chrome/browser/cookie_modal_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698