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

Unified Diff: chrome/browser/media/router/discovery/dial/device_description_fetcher.cc

Issue 2756483007: [Device Discovery] Move files from browser/extensions/api/dial to browser/media/router/discovery/di… (Closed)
Patch Set: resolve code review comments from Devlin Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/router/discovery/dial/device_description_fetcher.cc
diff --git a/chrome/browser/extensions/api/dial/device_description_fetcher.cc b/chrome/browser/media/router/discovery/dial/device_description_fetcher.cc
similarity index 95%
rename from chrome/browser/extensions/api/dial/device_description_fetcher.cc
rename to chrome/browser/media/router/discovery/dial/device_description_fetcher.cc
index 7be4b199367e06b3110989a1a54d1c6b8467991a..42f098afc1fbc0c080a40fe95243b8bab8096e4f 100644
--- a/chrome/browser/extensions/api/dial/device_description_fetcher.cc
+++ b/chrome/browser/media/router/discovery/dial/device_description_fetcher.cc
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/api/dial/device_description_fetcher.h"
+#include "chrome/browser/media/router/discovery/dial/device_description_fetcher.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
-#include "chrome/browser/extensions/api/dial/dial_device_data.h"
+#include "chrome/browser/media/router/discovery/dial/dial_device_data.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/load_flags.h"
@@ -24,9 +24,7 @@ constexpr int kMaxRetries = 3;
// should be more than sufficient.
constexpr int kMaxDescriptionSizeBytes = 262144;
-namespace extensions {
-namespace api {
-namespace dial {
+namespace media_router {
DeviceDescriptionFetcher::DeviceDescriptionFetcher(
const GURL& device_description_url,
@@ -146,6 +144,4 @@ void DeviceDescriptionFetcher::ReportError(const std::string& message) {
std::move(error_cb_).Run(message);
}
-} // namespace dial
-} // namespace api
-} // namespace extensions
+} // namespace media_router

Powered by Google App Engine
This is Rietveld 408576698