Chromium Code Reviews| Index: chrome/browser/ui/webui/offline_internals_ui.cc |
| diff --git a/chrome/browser/ui/webui/offline_internals_ui.cc b/chrome/browser/ui/webui/offline_internals_ui.cc |
| index c8e57eeb99b7911687fd750396bd44039770600f..b4ef79e7b16eebf199edf15d5179bca67ee72314 100644 |
| --- a/chrome/browser/ui/webui/offline_internals_ui.cc |
| +++ b/chrome/browser/ui/webui/offline_internals_ui.cc |
| @@ -9,6 +9,7 @@ |
| #include <vector> |
| #include "base/bind.h" |
| +#include "base/guid.h" |
| #include "base/macros.h" |
| #include "base/memory/weak_ptr.h" |
| #include "base/strings/string_number_conversions.h" |
| @@ -336,8 +337,10 @@ void OfflineInternalsUIMessageHandler::HandleAddToRequestQueue( |
| std::string url; |
| CHECK(args->GetString(1, &url)); |
| + // To be visible in Downloads UI, these items need a well-formed GUILD |
|
chili
2016/07/27 18:40:47
nit: should this say "GUI ID"? or "GUID"?
Dmitry Titov
2016/07/27 19:50:49
Done.
|
| + // and AsyncNamespace in their ClientId. |
| std::ostringstream id_stream; |
| - id_stream << std::rand(); |
| + id_stream << base::GenerateGUID(); |
| ResolveJavascriptCallback( |
| *callback_id, |