Skip to content

Commit 904187b

Browse files
committed
Consolidate the internal namespace on the analytics_desktop file
1 parent 64aa94f commit 904187b

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

analytics/src/analytics_desktop.cc

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,6 @@ namespace analytics {
4242
static HMODULE g_analytics_module = 0;
4343
#endif // defined(_WIN32)
4444

45-
namespace internal {
46-
bool IsAnalyticsDllLoaded() {
47-
#if defined(_WIN32)
48-
return g_analytics_module != 0;
49-
#else
50-
return false;
51-
#endif // defined(_WIN32)
52-
}
53-
} // namespace internal
54-
5545
// Future data for analytics.
5646
// This is initialized in `Initialize()` and cleaned up in `Terminate()`.
5747
static bool g_initialized = false;
@@ -135,6 +125,14 @@ void Initialize(const App& app) {
135125

136126
namespace internal {
137127

128+
bool IsAnalyticsDllLoaded() {
129+
#if defined(_WIN32)
130+
return g_analytics_module != 0;
131+
#else
132+
return false;
133+
#endif // defined(_WIN32)
134+
}
135+
138136
// Determine whether the analytics module is initialized.
139137
bool IsInitialized() { return g_initialized; }
140138

0 commit comments

Comments
 (0)