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

Unified Diff: shell/application_manager/network_fetcher.cc

Issue 951643002: Register application connections under their post-redirect URL. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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: shell/application_manager/network_fetcher.cc
diff --git a/shell/application_manager/network_fetcher.cc b/shell/application_manager/network_fetcher.cc
index a4a5e8aac69e2e5c1eb5bddbb2573f85bac97ad2..f1af41999f2a98cef731c6a4842178ffc6b480bf 100644
--- a/shell/application_manager/network_fetcher.cc
+++ b/shell/application_manager/network_fetcher.cc
@@ -39,6 +39,20 @@ NetworkFetcher::~NetworkFetcher() {
base::DeleteFile(path_, false);
}
+const GURL& NetworkFetcher::GetURL() const {
+ return url_;
+}
+
+GURL NetworkFetcher::GetRedirectURL() const {
+ if (!response_)
+ return GURL::EmptyGURL();
+
+ if (response_->redirect_url.is_null())
+ return GURL::EmptyGURL();
+
+ return GURL(response_->redirect_url);
qsr 2015/02/25 14:50:27 Did you test this? The doc for those fields are:
Aaron Boodman 2015/02/25 18:43:08 Ah, you are right. Fixed.
+}
+
URLResponsePtr NetworkFetcher::AsURLResponse(base::TaskRunner* task_runner,
uint32_t skip) {
if (skip != 0) {
« shell/application_manager/fetcher.h ('K') | « shell/application_manager/network_fetcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698