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

Unified Diff: components/omnibox/browser/physical_web_provider.cc

Issue 2528893003: [PhysicalWeb] Add physical_web namespace. (Closed)
Patch Set: Created 4 years, 1 month 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: components/omnibox/browser/physical_web_provider.cc
diff --git a/components/omnibox/browser/physical_web_provider.cc b/components/omnibox/browser/physical_web_provider.cc
index 049a19d694e16049a6bfceb5c774f89f61b25f0c..fc65e2e4464f0b0669f89351ffc27dfa25b90593 100644
--- a/components/omnibox/browser/physical_web_provider.cc
+++ b/components/omnibox/browser/physical_web_provider.cc
@@ -65,7 +65,8 @@ void PhysicalWebProvider::Start(const AutocompleteInput& input,
return;
}
- PhysicalWebDataSource* data_source = client_->GetPhysicalWebDataSource();
+ physical_web::PhysicalWebDataSource* data_source =
+ client_->GetPhysicalWebDataSource();
if (!data_source) {
done_ = true;
nearby_url_count_ = 0;
@@ -127,8 +128,8 @@ void PhysicalWebProvider::ConstructMatches(base::ListValue* metadata_list) {
std::string url_string;
std::string title_string;
- if (!metadata_item->GetString(kPhysicalWebResolvedUrlKey, &url_string) ||
- !metadata_item->GetString(kPhysicalWebTitleKey, &title_string)) {
+ if (!metadata_item->GetString(physical_web::kResolvedUrlKey, &url_string) ||
+ !metadata_item->GetString(physical_web::kTitleKey, &title_string)) {
continue;
}
base::string16 title =

Powered by Google App Engine
This is Rietveld 408576698