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

Unified Diff: ios/clean/chrome/browser/model/browser.mm

Issue 2727353006: Introduce BrowserList and Browser classes for iOS. (Closed)
Patch Set: Add blank line. Created 3 years, 10 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/clean/chrome/browser/model/browser.h ('k') | ios/clean/chrome/browser/model/browser_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/clean/chrome/browser/model/browser.mm
diff --git a/ios/clean/chrome/browser/model/browser.mm b/ios/clean/chrome/browser/model/browser.mm
new file mode 100644
index 0000000000000000000000000000000000000000..ede26f6aabfc7b985ebb6270ce5e1b61130976da
--- /dev/null
+++ b/ios/clean/chrome/browser/model/browser.mm
@@ -0,0 +1,19 @@
+// Copyright 2017 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/clean/chrome/browser/model/browser.h"
+
+#include "base/logging.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+Browser::Browser(ios::ChromeBrowserState* browser_state)
+ : web_state_list_(WebStateList::WebStateOwned),
+ browser_state_(browser_state) {
+ DCHECK(browser_state_);
+}
+
+Browser::~Browser() = default;
« no previous file with comments | « ios/clean/chrome/browser/model/browser.h ('k') | ios/clean/chrome/browser/model/browser_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698