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

Unified Diff: chrome/browser/chromeos/arc/arc_util.h

Issue 2642783003: Move more utility functions to arc_util. (Closed)
Patch Set: Revert IsIntentHelperAvailable fix. Created 3 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
Index: chrome/browser/chromeos/arc/arc_util.h
diff --git a/chrome/browser/chromeos/arc/arc_util.h b/chrome/browser/chromeos/arc/arc_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..ae6ae9d598b379b1c8aa4c73b11df2c82965d409
--- /dev/null
+++ b/chrome/browser/chromeos/arc/arc_util.h
@@ -0,0 +1,23 @@
+// 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_
+#define CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_
+
+// Most utility should be put in components/arc/arc_util.{h,cc}, rather than
+// here. However, some utility implementation requires other modules defined in
+// chrome/, so this file contains such utilities.
Luis Héctor Chávez 2017/01/19 18:09:15 nit: mention that including chrome/ from component
hidehiko 2017/01/24 17:46:11 Done.
+
+class Profile;
+
+namespace arc {
+namespace util {
Luis Héctor Chávez 2017/01/19 18:09:15 I think I agree with nya@'s original comment of th
hidehiko 2017/01/24 17:46:12 Ok, so name conflicting should be resolved now. Re
+
+// Returns true if Arc is allowed to run for the given profile.
Luis Héctor Chávez 2017/01/19 18:09:15 nit: s/Arc/ARC/
Yusuke Sato 2017/01/19 22:39:31 Can we have a little bit more documentation? Expla
hidehiko 2017/01/24 17:46:12 Done.
hidehiko 2017/01/24 17:46:12 I just moved the comment ;-). Anyway, fixed.
+bool IsArcAllowedForProfile(const Profile* profile);
+
+} // namespace util
+} // namespace arc
+
+#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698