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

Unified Diff: ios/public/provider/chrome/browser/browser_state/chrome_browser_state.cc

Issue 1667733002: Move chrome_browser_state.{cc,h} to ios/chrome/browser/browser_state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test_support_ios
Patch Set: Created 4 years, 11 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
« no previous file with comments | « ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/browser_state/chrome_browser_state.cc
diff --git a/ios/public/provider/chrome/browser/browser_state/chrome_browser_state.cc b/ios/public/provider/chrome/browser/browser_state/chrome_browser_state.cc
deleted file mode 100644
index 1041737a1c37d31376a2aba5941dc7aeeb4c8aaa..0000000000000000000000000000000000000000
--- a/ios/public/provider/chrome/browser/browser_state/chrome_browser_state.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 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.
-
-#include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h"
-
-#include "base/files/file_path.h"
-#include "ios/public/provider/web/web_ui_ios.h"
-#include "ios/web/public/web_state/web_state.h"
-
-namespace ios {
-
-// static
-ChromeBrowserState* ChromeBrowserState::FromBrowserState(
- web::BrowserState* browser_state) {
- // This is safe; this is the only implementation of BrowserState.
- return static_cast<ChromeBrowserState*>(browser_state);
-}
-
-// static
-ChromeBrowserState* ChromeBrowserState::FromWebUIIOS(web::WebUIIOS* web_ui) {
- return FromBrowserState(web_ui->GetWebState()->GetBrowserState());
-}
-
-std::string ChromeBrowserState::GetDebugName() {
- // The debug name is based on the state path of the original browser state
- // to keep in sync with the meaning on other platforms.
- std::string name =
- GetOriginalChromeBrowserState()->GetStatePath().BaseName().MaybeAsASCII();
- if (name.empty()) {
- name = "UnknownBrowserState";
- }
- return name;
-}
-
-} // namespace ios
« no previous file with comments | « ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698