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

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

Issue 1974153002: Add an experiment for the default browser infobar on Windows 10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile the test only on desktop platforms Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/startup/default_browser_infobar_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SHELL_INTEGRATION_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 const char* worker_name_; 206 const char* worker_name_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(DefaultWebClientWorker); 208 DISALLOW_COPY_AND_ASSIGN(DefaultWebClientWorker);
209 }; 209 };
210 210
211 // Worker for checking and setting the default browser. 211 // Worker for checking and setting the default browser.
212 class DefaultBrowserWorker : public DefaultWebClientWorker { 212 class DefaultBrowserWorker : public DefaultWebClientWorker {
213 public: 213 public:
214 explicit DefaultBrowserWorker(const DefaultWebClientWorkerCallback& callback); 214 explicit DefaultBrowserWorker(const DefaultWebClientWorkerCallback& callback);
215 215
216 private: 216 protected:
217 ~DefaultBrowserWorker() override; 217 ~DefaultBrowserWorker() override;
218 218
219 private:
219 // Check if Chrome is the default browser. 220 // Check if Chrome is the default browser.
220 DefaultWebClientState CheckIsDefaultImpl() override; 221 DefaultWebClientState CheckIsDefaultImpl() override;
221 222
222 // Set Chrome as the default browser. 223 // Set Chrome as the default browser.
223 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override; 224 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override;
224 225
225 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker); 226 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker);
226 }; 227 };
227 228
228 // Worker for checking and setting the default client application 229 // Worker for checking and setting the default client application
(...skipping 18 matching lines...) Expand all
247 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override; 248 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override;
248 249
249 std::string protocol_; 250 std::string protocol_;
250 251
251 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); 252 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker);
252 }; 253 };
253 254
254 } // namespace shell_integration 255 } // namespace shell_integration
255 256
256 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ 257 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/startup/default_browser_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698