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

Unified Diff: components/arc/arc_util.h

Issue 2877883002: Consolidate two IsArcWindow functions to reduce code duplication (Closed)
Patch Set: Address a comment from sadrul@ Created 3 years, 7 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 | « components/arc/DEPS ('k') | components/arc/arc_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_util.h
diff --git a/components/arc/arc_util.h b/components/arc/arc_util.h
index a9e69d36878ecbaae809ccdd1c2cb6a630a5eed6..aa63bcbc324cc0382b03a51e1d5eb458b8fa9625 100644
--- a/components/arc/arc_util.h
+++ b/components/arc/arc_util.h
@@ -9,6 +9,10 @@
// outside of ARC, e.g. CommandLine flag, attribute of global data/state,
// users' preferences, and FeatureList.
+namespace aura {
+class Window;
+} // namespace aura
+
namespace base {
class CommandLine;
} // namespace base
@@ -66,6 +70,10 @@ bool IsArcAllowedForActiveDirectoryUsers();
// In most cases, it is disabled for testing purpose.
bool IsArcOptInVerificationDisabled();
+// Returns true if the |window|'s aura::client::kAppType is ARC_APP. When
+// |window| is nullptr, returns false.
+bool IsArcAppWindow(aura::Window* window);
+
} // namespace arc
#endif // COMPONENTS_ARC_ARC_UTIL_H_
« no previous file with comments | « components/arc/DEPS ('k') | components/arc/arc_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698