| OLD | NEW |
| 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 #include "chrome/browser/feedback/feedback_util.h" | 5 #include "chrome/browser/feedback/feedback_util.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "grit/generated_resources.h" | 30 #include "grit/generated_resources.h" |
| 31 #include "grit/locale_settings.h" | 31 #include "grit/locale_settings.h" |
| 32 #include "grit/theme_resources.h" | 32 #include "grit/theme_resources.h" |
| 33 #include "net/base/load_flags.h" | 33 #include "net/base/load_flags.h" |
| 34 #include "net/url_request/url_fetcher.h" | 34 #include "net/url_request/url_fetcher.h" |
| 35 #include "net/url_request/url_fetcher_delegate.h" | 35 #include "net/url_request/url_fetcher_delegate.h" |
| 36 #include "net/url_request/url_request_status.h" | 36 #include "net/url_request/url_request_status.h" |
| 37 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
| 38 #include "unicode/locid.h" | 38 #include "unicode/locid.h" |
| 39 | 39 |
| 40 #if defined(OS_CHROMEOS) | |
| 41 #include "chrome/browser/chromeos/notifications/system_notification.h" | |
| 42 #endif | |
| 43 | |
| 44 using content::WebContents; | 40 using content::WebContents; |
| 45 | 41 |
| 46 namespace { | 42 namespace { |
| 47 | 43 |
| 48 const int kFeedbackVersion = 1; | 44 const int kFeedbackVersion = 1; |
| 49 | 45 |
| 50 const char kReportPhishingUrl[] = | 46 const char kReportPhishingUrl[] = |
| 51 "http://www.google.com/safebrowsing/report_phish/"; | 47 "http://www.google.com/safebrowsing/report_phish/"; |
| 52 | 48 |
| 53 // URL to post bug reports to. | 49 // URL to post bug reports to. |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 if (screenshot_size == NULL) | 409 if (screenshot_size == NULL) |
| 414 screenshot_size = new gfx::Rect(); | 410 screenshot_size = new gfx::Rect(); |
| 415 return *screenshot_size; | 411 return *screenshot_size; |
| 416 } | 412 } |
| 417 | 413 |
| 418 // static | 414 // static |
| 419 void FeedbackUtil::SetScreenshotSize(const gfx::Rect& rect) { | 415 void FeedbackUtil::SetScreenshotSize(const gfx::Rect& rect) { |
| 420 gfx::Rect& screen_size = GetScreenshotSize(); | 416 gfx::Rect& screen_size = GetScreenshotSize(); |
| 421 screen_size = rect; | 417 screen_size = rect; |
| 422 } | 418 } |
| OLD | NEW |