| 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/ui/webui/feedback_ui.h" | 5 #include "chrome/browser/ui/webui/feedback_ui.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "chrome/browser/chromeos/cros/cros_library.h" | 50 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 51 #include "chrome/browser/chromeos/login/user_manager.h" | 51 #include "chrome/browser/chromeos/login/user_manager.h" |
| 52 #include "chrome/browser/chromeos/system/syslogs_provider.h" | 52 #include "chrome/browser/chromeos/system/syslogs_provider.h" |
| 53 #include "ui/aura/root_window.h" | 53 #include "ui/aura/root_window.h" |
| 54 #include "ui/aura/window.h" | 54 #include "ui/aura/window.h" |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 using content::BrowserThread; | 57 using content::BrowserThread; |
| 58 using content::WebContents; | 58 using content::WebContents; |
| 59 using content::WebUIMessageHandler; | 59 using content::WebUIMessageHandler; |
| 60 using ui::WebDialogUI; |
| 60 | 61 |
| 61 namespace { | 62 namespace { |
| 62 | 63 |
| 63 const char kScreenshotBaseUrl[] = "chrome://screenshots/"; | 64 const char kScreenshotBaseUrl[] = "chrome://screenshots/"; |
| 64 const char kCurrentScreenshotUrl[] = "chrome://screenshots/current"; | 65 const char kCurrentScreenshotUrl[] = "chrome://screenshots/current"; |
| 65 | 66 |
| 66 const char kCategoryTagParameter[] = "categoryTag="; | 67 const char kCategoryTagParameter[] = "categoryTag="; |
| 67 const char kDescriptionParameter[] = "description="; | 68 const char kDescriptionParameter[] = "description="; |
| 68 | 69 |
| 69 #if defined(OS_CHROMEOS) | 70 #if defined(OS_CHROMEOS) |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 size_t sort_size = std::min(max_saved, screenshot_filepaths.size()); | 615 size_t sort_size = std::min(max_saved, screenshot_filepaths.size()); |
| 615 std::partial_sort(screenshot_filepaths.begin(), | 616 std::partial_sort(screenshot_filepaths.begin(), |
| 616 screenshot_filepaths.begin() + sort_size, | 617 screenshot_filepaths.begin() + sort_size, |
| 617 screenshot_filepaths.end(), | 618 screenshot_filepaths.end(), |
| 618 ScreenshotTimestampComp); | 619 ScreenshotTimestampComp); |
| 619 for (size_t i = 0; i < sort_size; ++i) | 620 for (size_t i = 0; i < sort_size; ++i) |
| 620 saved_screenshots->push_back(std::string(kSavedScreenshotsUrl) + | 621 saved_screenshots->push_back(std::string(kSavedScreenshotsUrl) + |
| 621 screenshot_filepaths[i]); | 622 screenshot_filepaths[i]); |
| 622 } | 623 } |
| 623 #endif | 624 #endif |
| OLD | NEW |