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

Unified Diff: ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc

Issue 2570573002: Convert RLZ to a buildflag header (Closed)
Patch Set: iOS Created 4 years 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 | « ios/chrome/browser/search_engines/template_url_service_factory.cc ('k') | rlz/features/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc
diff --git a/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc b/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc
index 44669b1e78844bdb770074d1da391dc2ab5febf9..03eaaba63870950a69e8ff1d48995f6614fa1f6b 100644
--- a/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc
+++ b/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc
@@ -18,9 +18,10 @@
#include "ios/chrome/common/channel_info.h"
#include "ios/web/public/web_thread.h"
#include "net/base/escape.h"
+#include "rlz/features/features.h"
#include "url/gurl.h"
-#if defined(ENABLE_RLZ)
+#if BUILDFLAG(ENABLE_RLZ)
#include "components/rlz/rlz_tracker.h" // nogncheck
#endif
@@ -60,7 +61,7 @@ base::string16 UIThreadSearchTermsData::GetRlzParameterValue(
DCHECK(!from_app_list);
DCHECK(thread_checker_.CalledOnValidThread());
base::string16 rlz_string;
-#if defined(ENABLE_RLZ)
+#if BUILDFLAG(ENABLE_RLZ)
// For organic brandcode do not use rlz at all.
std::string brand;
if (ios::google_brand::GetBrand(&brand) &&
« no previous file with comments | « ios/chrome/browser/search_engines/template_url_service_factory.cc ('k') | rlz/features/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698