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

Unified Diff: chrome/browser/extensions/extension_updater.cc

Issue 6166010: net: Remove typedef net::URLRequestStatus URLRequestStatus; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome/browser/dom_ui/filebrowse_ui.cc ('k') | chrome/browser/extensions/extension_updater_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_updater.cc
diff --git a/chrome/browser/extensions/extension_updater.cc b/chrome/browser/extensions/extension_updater.cc
index 04fb637e73048c17bf2bf117f7fbb4840f1ed608..b7d4f1f0f8f754853ea781666812a189accd6d08 100644
--- a/chrome/browser/extensions/extension_updater.cc
+++ b/chrome/browser/extensions/extension_updater.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -463,8 +463,11 @@ void ExtensionUpdater::Stop() {
}
void ExtensionUpdater::OnURLFetchComplete(
- const URLFetcher* source, const GURL& url, const URLRequestStatus& status,
- int response_code, const ResponseCookies& cookies,
+ const URLFetcher* source,
+ const GURL& url,
+ const net::URLRequestStatus& status,
+ int response_code,
+ const ResponseCookies& cookies,
const std::string& data) {
// Stop() destroys all our URLFetchers, which means we shouldn't be
// called after Stop() is called.
@@ -553,13 +556,15 @@ class SafeManifestParser : public UtilityProcessHost::Client {
};
-void ExtensionUpdater::OnManifestFetchComplete(const GURL& url,
- const URLRequestStatus& status,
- int response_code,
- const std::string& data) {
+void ExtensionUpdater::OnManifestFetchComplete(
+ const GURL& url,
+ const net::URLRequestStatus& status,
+ int response_code,
+ const std::string& data) {
// We want to try parsing the manifest, and if it indicates updates are
// available, we want to fire off requests to fetch those updates.
- if (status.status() == URLRequestStatus::SUCCESS && response_code == 200) {
+ if ((status.status() == net::URLRequestStatus::SUCCESS) &&
+ (response_code == 200)) {
scoped_refptr<SafeManifestParser> safe_parser(
new SafeManifestParser(data, current_manifest_fetch_.release(), this));
safe_parser->Start();
@@ -643,10 +648,10 @@ void ExtensionUpdater::ProcessBlacklist(const std::string& data) {
}
void ExtensionUpdater::OnCRXFetchComplete(const GURL& url,
- const URLRequestStatus& status,
+ const net::URLRequestStatus& status,
int response_code,
const std::string& data) {
- if (status.status() == URLRequestStatus::SUCCESS &&
+ if (status.status() == net::URLRequestStatus::SUCCESS &&
response_code == 200) {
if (current_extension_fetch_.id == kBlacklistAppID) {
ProcessBlacklist(data);
« no previous file with comments | « chrome/browser/dom_ui/filebrowse_ui.cc ('k') | chrome/browser/extensions/extension_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698