| Index: chrome/browser/local_discovery/privet_url_fetcher.h
|
| diff --git a/chrome/browser/local_discovery/privet_url_fetcher.h b/chrome/browser/local_discovery/privet_url_fetcher.h
|
| index f157b3dcd49b08e0995cfd58f18492e6d0cd6d9d..68846337227c456a08ad183ee5efa99a78a44701 100644
|
| --- a/chrome/browser/local_discovery/privet_url_fetcher.h
|
| +++ b/chrome/browser/local_discovery/privet_url_fetcher.h
|
| @@ -103,8 +103,12 @@ class PrivetURLFetcher : public net::URLFetcherDelegate {
|
| void SetUploadFilePath(const std::string& upload_content_type,
|
| const base::FilePath& upload_file_path);
|
|
|
| - const GURL& url() const { return url_fetcher_->GetOriginalURL(); }
|
| - int response_code() const { return url_fetcher_->GetResponseCode(); }
|
| + const GURL& url() const {
|
| + return url_fetcher_ ? url_fetcher_->GetOriginalURL() : url_;
|
| + }
|
| + int response_code() const {
|
| + return url_fetcher_ ? url_fetcher_->GetResponseCode() : -1;
|
| + }
|
|
|
| private:
|
| void OnURLFetchCompleteParseData(const net::URLFetcher* source);
|
|
|