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

Side by Side Diff: chrome/browser/rlz/rlz.h

Issue 848963002: Fix official Mac build for strict virtual annotations check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RLZ_RLZ_H_ 5 #ifndef CHROME_BROWSER_RLZ_RLZ_H_
6 #define CHROME_BROWSER_RLZ_RLZ_H_ 6 #define CHROME_BROWSER_RLZ_RLZ_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(ENABLE_RLZ) 10 #if defined(ENABLE_RLZ)
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 #if !defined(OS_IOS) 97 #if !defined(OS_IOS)
98 // Records that the app list search has been used. 98 // Records that the app list search has been used.
99 static void RecordAppListSearch(); 99 static void RecordAppListSearch();
100 #endif 100 #endif
101 101
102 // The following methods are made protected so that they can be used for 102 // The following methods are made protected so that they can be used for
103 // testing purposes. Production code should never need to call these. 103 // testing purposes. Production code should never need to call these.
104 protected: 104 protected:
105 RLZTracker(); 105 RLZTracker();
106 virtual ~RLZTracker(); 106 ~RLZTracker() override;
107 107
108 // Called by InitRlzFromProfileDelayed with values taken from |profile|. 108 // Called by InitRlzFromProfileDelayed with values taken from |profile|.
109 static bool InitRlzDelayed(bool first_run, 109 static bool InitRlzDelayed(bool first_run,
110 bool send_ping_immediately, 110 bool send_ping_immediately,
111 base::TimeDelta delay, 111 base::TimeDelta delay,
112 bool is_google_default_search, 112 bool is_google_default_search,
113 bool is_google_homepage, 113 bool is_google_homepage,
114 bool is_google_in_startpages); 114 bool is_google_in_startpages);
115 115
116 // Performs initialization of RLZ tracker that is purposefully delayed so 116 // Performs initialization of RLZ tracker that is purposefully delayed so
117 // that it does not interfere with chrome startup time. 117 // that it does not interfere with chrome startup time.
118 virtual void DelayedInit(); 118 virtual void DelayedInit();
119 119
120 // content::NotificationObserver implementation: 120 // content::NotificationObserver implementation:
121 virtual void Observe(int type, 121 void Observe(int type,
122 const content::NotificationSource& source, 122 const content::NotificationSource& source,
123 const content::NotificationDetails& details) override; 123 const content::NotificationDetails& details) override;
124 124
125 // Used by test code to override the default RLZTracker instance returned 125 // Used by test code to override the default RLZTracker instance returned
126 // by GetInstance(). 126 // by GetInstance().
127 void set_tracker(RLZTracker* tracker) { 127 void set_tracker(RLZTracker* tracker) {
128 tracker_ = tracker; 128 tracker_ = tracker;
129 } 129 }
130 130
131 // Sends the financial ping to the RLZ servers and invalidates the RLZ string 131 // Sends the financial ping to the RLZ servers and invalidates the RLZ string
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 // Minimum delay before sending financial ping after initialization. 238 // Minimum delay before sending financial ping after initialization.
239 base::TimeDelta min_init_delay_; 239 base::TimeDelta min_init_delay_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(RLZTracker); 241 DISALLOW_COPY_AND_ASSIGN(RLZTracker);
242 }; 242 };
243 243
244 #endif // defined(ENABLE_RLZ) 244 #endif // defined(ENABLE_RLZ)
245 245
246 #endif // CHROME_BROWSER_RLZ_RLZ_H_ 246 #endif // CHROME_BROWSER_RLZ_RLZ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698