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

Side by Side Diff: chrome/browser/android/background_sync_launcher_android.h

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 13 matching lines...) Expand all
24 static void LaunchBrowserIfStopped(bool launch_when_next_online, 24 static void LaunchBrowserIfStopped(bool launch_when_next_online,
25 int64_t min_delay_ms); 25 int64_t min_delay_ms);
26 26
27 static bool ShouldDisableBackgroundSync(); 27 static bool ShouldDisableBackgroundSync();
28 28
29 // TODO(iclelland): Remove this once the bots have their play services package 29 // TODO(iclelland): Remove this once the bots have their play services package
30 // updated before every test run. (https://crbug.com/514449) 30 // updated before every test run. (https://crbug.com/514449)
31 static void SetPlayServicesVersionCheckDisabledForTests(bool disabled); 31 static void SetPlayServicesVersionCheckDisabledForTests(bool disabled);
32 32
33 private: 33 private:
34 friend struct base::DefaultLazyInstanceTraits<BackgroundSyncLauncherAndroid>; 34 friend struct base::LazyInstanceTraitsBase<BackgroundSyncLauncherAndroid>;
35 35
36 // Constructor and destructor marked private to enforce singleton 36 // Constructor and destructor marked private to enforce singleton
37 BackgroundSyncLauncherAndroid(); 37 BackgroundSyncLauncherAndroid();
38 ~BackgroundSyncLauncherAndroid(); 38 ~BackgroundSyncLauncherAndroid();
39 39
40 void LaunchBrowserIfStoppedImpl(bool launch_when_next_online, 40 void LaunchBrowserIfStoppedImpl(bool launch_when_next_online,
41 int64_t min_delay_ms); 41 int64_t min_delay_ms);
42 42
43 base::android::ScopedJavaGlobalRef<jobject> java_launcher_; 43 base::android::ScopedJavaGlobalRef<jobject> java_launcher_;
44 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncLauncherAndroid); 44 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncLauncherAndroid);
45 }; 45 };
46 46
47 #endif // CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_ 47 #endif // CHROME_BROWSER_ANDROID_BACKGROUND_SYNC_LAUNCHER_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/app/chrome_main_delegate.cc ('k') | chrome/browser/android/background_sync_launcher_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698