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 17 matching lines...) Expand all Loading... |
28 #include "content/public/browser/web_contents.h" | 28 #include "content/public/browser/web_contents.h" |
29 #include "content/public/common/content_client.h" | 29 #include "content/public/common/content_client.h" |
30 #include "googleurl/src/gurl.h" | 30 #include "googleurl/src/gurl.h" |
31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
32 #include "grit/locale_settings.h" | 32 #include "grit/locale_settings.h" |
33 #include "grit/theme_resources.h" | 33 #include "grit/theme_resources.h" |
34 #include "net/base/load_flags.h" | 34 #include "net/base/load_flags.h" |
35 #include "net/url_request/url_fetcher.h" | 35 #include "net/url_request/url_fetcher.h" |
36 #include "net/url_request/url_fetcher_delegate.h" | 36 #include "net/url_request/url_fetcher_delegate.h" |
37 #include "net/url_request/url_request_status.h" | 37 #include "net/url_request/url_request_status.h" |
| 38 #include "third_party/icu/public/common/unicode/locid.h" |
38 #include "ui/base/l10n/l10n_util.h" | 39 #include "ui/base/l10n/l10n_util.h" |
39 #include "unicode/locid.h" | |
40 | 40 |
41 using content::WebContents; | 41 using content::WebContents; |
42 | 42 |
43 const char kSyncDataKey[] = "about_sync_data"; | 43 const char kSyncDataKey[] = "about_sync_data"; |
44 | 44 |
45 namespace { | 45 namespace { |
46 | 46 |
47 const int kFeedbackVersion = 1; | 47 const int kFeedbackVersion = 1; |
48 | 48 |
49 const char kReportPhishingUrl[] = | 49 const char kReportPhishingUrl[] = |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 if (screenshot_size == NULL) | 413 if (screenshot_size == NULL) |
414 screenshot_size = new gfx::Rect(); | 414 screenshot_size = new gfx::Rect(); |
415 return *screenshot_size; | 415 return *screenshot_size; |
416 } | 416 } |
417 | 417 |
418 // static | 418 // static |
419 void FeedbackUtil::SetScreenshotSize(const gfx::Rect& rect) { | 419 void FeedbackUtil::SetScreenshotSize(const gfx::Rect& rect) { |
420 gfx::Rect& screen_size = GetScreenshotSize(); | 420 gfx::Rect& screen_size = GetScreenshotSize(); |
421 screen_size = rect; | 421 screen_size = rect; |
422 } | 422 } |
OLD | NEW |