[ios] Update files in i/c/b/page_info/*

This CL replaces:
* ChromeBrowserState => ProfileIOS
* GetForBrowserState => GetForProfile at call sites.
* GetBrowserState => GetProfile
* browser_state, browserState => profile

web::BrowserState code is not updated.

Fixed: 365530671
Change-Id: I6a22da477bcdb928e30a2d0afca620cf517672ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5899553
Commit-Queue: Mark Cogan <marq@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Auto-Submit: Federica Germinario <fedegermi@google.com>
Cr-Commit-Position: refs/heads/main@{#1362360}
diff --git a/ios/chrome/browser/page_info/about_this_site_service_factory.mm b/ios/chrome/browser/page_info/about_this_site_service_factory.mm
index 8c7940c..7179249c 100644
--- a/ios/chrome/browser/page_info/about_this_site_service_factory.mm
+++ b/ios/chrome/browser/page_info/about_this_site_service_factory.mm
@@ -58,7 +58,7 @@
   }
 
   auto* template_service =
-      ios::TemplateURLServiceFactory::GetForBrowserState(profile);
+      ios::TemplateURLServiceFactory::GetForProfile(profile);
   // TemplateURLService may be null during testing.
   if (!template_service) {
     return nullptr;
diff --git a/ios/chrome/browser/page_info/about_this_site_tab_helper_unittest.mm b/ios/chrome/browser/page_info/about_this_site_tab_helper_unittest.mm
index d03b2e8..8b2eb06 100644
--- a/ios/chrome/browser/page_info/about_this_site_tab_helper_unittest.mm
+++ b/ios/chrome/browser/page_info/about_this_site_tab_helper_unittest.mm
@@ -85,14 +85,14 @@
   // Initializes the OptimizationGuide service as well as the
   // `AboutThisSiteTabHelper` to be tested and the test browser and web state.
   void InitService() {
-    TestChromeBrowserState::Builder builder;
+    TestProfileIOS::Builder builder;
     builder.AddTestingFactory(
         OptimizationGuideServiceFactory::GetInstance(),
         OptimizationGuideServiceFactory::GetDefaultFactory());
-    browser_state_ = std::move(builder).Build();
+    profile_ = std::move(builder).Build();
     optimization_guide_service_ =
-        OptimizationGuideServiceFactory::GetForProfile(browser_state_.get());
-    web_state_.SetBrowserState(browser_state_.get());
+        OptimizationGuideServiceFactory::GetForProfile(profile_.get());
+    web_state_.SetBrowserState(profile_.get());
 
     AboutThisSiteTabHelper::CreateForWebState(&web_state_,
                                               optimization_guide_service_);
@@ -101,16 +101,16 @@
   // Initializes the OptimizationGuide service as well as the
   // `AboutThisSiteTabHelper`, the test browser and web state for an off the
   // record session. Should only be called after `InitService()` so the
-  // `browser_state_` has been initialized.
+  // `profile_` has been initialized.
   void InitOTRService() {
-    ChromeBrowserState* otr_browser_state =
-        browser_state_->CreateOffTheRecordBrowserStateWithTestingFactories(
-            {TestChromeBrowserState::TestingFactory{
+    ProfileIOS* otr_profile =
+        profile_->CreateOffTheRecordProfileWithTestingFactories(
+            {TestProfileIOS::TestingFactory{
                 OptimizationGuideServiceFactory::GetInstance(),
                 OptimizationGuideServiceFactory::GetDefaultFactory()}});
     optimization_guide_service_otr_ =
-        OptimizationGuideServiceFactory::GetForProfile(otr_browser_state);
-    web_state_otr_.SetBrowserState(otr_browser_state);
+        OptimizationGuideServiceFactory::GetForProfile(otr_profile);
+    web_state_otr_.SetBrowserState(otr_profile);
 
     AboutThisSiteTabHelper::CreateForWebState(&web_state_otr_,
                                               optimization_guide_service_otr_);
@@ -156,7 +156,7 @@
   web::WebTaskEnvironment task_environment_;
   base::test::ScopedFeatureList scoped_feature_list_;
   base::HistogramTester histogram_tester_;
-  std::unique_ptr<TestChromeBrowserState> browser_state_;
+  std::unique_ptr<TestProfileIOS> profile_;
   web::FakeWebState web_state_;
   web::FakeWebState web_state_otr_;
   web::FakeNavigationContext context_;