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

Unified Diff: ios/chrome/browser/physical_web/physical_web_local_state.mm

Issue 2494193002: Register Physical Web preference in Chrome's local state (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: ios/chrome/browser/physical_web/physical_web_local_state.mm
diff --git a/ios/chrome/browser/physical_web/physical_web_local_state.mm b/ios/chrome/browser/physical_web/physical_web_local_state.mm
new file mode 100644
index 0000000000000000000000000000000000000000..ab0b1009de2d0d5d19dee1596e8f908aa69c92ee
--- /dev/null
+++ b/ios/chrome/browser/physical_web/physical_web_local_state.mm
@@ -0,0 +1,18 @@
+// Copyright 2016 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.
+
+#import "ios/chrome/browser/physical_web/physical_web_local_state.h"
+
+#include "components/prefs/pref_registry_simple.h"
+#include "ios/chrome/browser/physical_web/physical_web_constants.h"
+#include "ios/chrome/browser/pref_names.h"
+
+@implementation PhysicalWebLocalState
+
++ (void)registerLocalState:(PrefRegistrySimple*)registry {
+ registry->RegisterIntegerPref(prefs::kIosPhysicalWebEnabled,
+ physical_web::kPhysicalWebOnboarding);
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698