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

Unified Diff: chrome/browser/extensions/activity_log/hashed_ad_network_database.h

Issue 635573005: Cleanup: Better constify some strings in chrome/browser/{chromeos,extensions}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, nit Created 6 years, 2 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
Index: chrome/browser/extensions/activity_log/hashed_ad_network_database.h
diff --git a/chrome/browser/extensions/activity_log/hashed_ad_network_database.h b/chrome/browser/extensions/activity_log/hashed_ad_network_database.h
index a281bd902952f2e6011a213a8a0365800328af2f..dae2eeeb13413c6c63988c0f91c41d03efb78aee 100644
--- a/chrome/browser/extensions/activity_log/hashed_ad_network_database.h
+++ b/chrome/browser/extensions/activity_log/hashed_ad_network_database.h
@@ -16,7 +16,7 @@ class HashedAdNetworkDatabase : public AdNetworkDatabase {
HashedAdNetworkDatabase();
~HashedAdNetworkDatabase() override;
- void set_entries_for_testing(const char** entries, int num_entries) {
+ void set_entries_for_testing(const char* const* entries, int num_entries) {
entries_ = entries;
num_entries_ = num_entries;
}
@@ -27,7 +27,7 @@ class HashedAdNetworkDatabase : public AdNetworkDatabase {
// Points to the array of hash entries. In practice, this is always set to
// kHashedAdNetworks, but is exposed via set_entries_for_testing().
- const char** entries_;
+ const char* const* entries_;
// The number of entries.
int num_entries_;

Powered by Google App Engine
This is Rietveld 408576698