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

Unified Diff: components/quirks/quirks_manager.cc

Issue 2765703003: Include display names in Quirks URL (Closed)
Patch Set: 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
« no previous file with comments | « components/quirks/quirks_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/quirks/quirks_manager.cc
diff --git a/components/quirks/quirks_manager.cc b/components/quirks/quirks_manager.cc
index 382e9fd12c26f6df9a196b9a68170a09963d27b8..d5d81bb63b3963da26f953d901f13ed1afdac096 100644
--- a/components/quirks/quirks_manager.cc
+++ b/components/quirks/quirks_manager.cc
@@ -114,6 +114,7 @@ void QuirksManager::OnLoginCompleted() {
void QuirksManager::RequestIccProfilePath(
int64_t product_id,
+ const std::string& display_name,
const RequestFinishedCallback& on_request_finished) {
DCHECK(thread_checker_.CalledOnValidThread());
@@ -135,7 +136,7 @@ void QuirksManager::RequestIccProfilePath(
base::Bind(&CheckForIccFile,
delegate_->GetDisplayProfileDirectory().Append(name)),
base::Bind(&QuirksManager::OnIccFilePathRequestCompleted,
- weak_ptr_factory_.GetWeakPtr(), product_id,
+ weak_ptr_factory_.GetWeakPtr(), product_id, display_name,
on_request_finished));
}
@@ -161,6 +162,7 @@ std::unique_ptr<net::URLFetcher> QuirksManager::CreateURLFetcher(
void QuirksManager::OnIccFilePathRequestCompleted(
int64_t product_id,
+ const std::string& display_name,
const RequestFinishedCallback& on_request_finished,
base::FilePath path) {
DCHECK(thread_checker_.CalledOnValidThread());
@@ -191,7 +193,7 @@ void QuirksManager::OnIccFilePathRequestCompleted(
// Create and start a client to download file.
QuirksClient* client =
- new QuirksClient(product_id, on_request_finished, this);
+ new QuirksClient(product_id, display_name, on_request_finished, this);
clients_.insert(base::WrapUnique(client));
if (!waiting_for_login_)
client->StartDownload();
« no previous file with comments | « components/quirks/quirks_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698