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

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.h

Issue 16172005: Clean up async app launcher enabled checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 7 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
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_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/bundle_installer.h" 10 #include "chrome/browser/extensions/bundle_installer.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 content::DownloadItem* item) OVERRIDE; 185 content::DownloadItem* item) OVERRIDE;
186 186
187 protected: 187 protected:
188 virtual ~CompleteInstallFunction(); 188 virtual ~CompleteInstallFunction();
189 189
190 // ExtensionFunction: 190 // ExtensionFunction:
191 virtual bool RunImpl() OVERRIDE; 191 virtual bool RunImpl() OVERRIDE;
192 192
193 private: 193 private:
194 void AfterMaybeInstallAppLauncher(bool ok); 194 void AfterMaybeInstallAppLauncher(bool ok);
195 void OnGetAppLauncherEnabled(std::string id, bool app_launcher_enabled);
196 195
197 scoped_ptr<WebstoreInstaller::Approval> approval_; 196 scoped_ptr<WebstoreInstaller::Approval> approval_;
198 }; 197 };
199 198
200 class EnableAppLauncherFunction 199 class EnableAppLauncherFunction
201 : public AsyncExtensionFunction { 200 : public AsyncExtensionFunction {
202 public: 201 public:
203 DECLARE_EXTENSION_FUNCTION("webstorePrivate.enableAppLauncher", 202 DECLARE_EXTENSION_FUNCTION("webstorePrivate.enableAppLauncher",
204 WEBSTOREPRIVATE_ENABLEAPPLAUNCHER) 203 WEBSTOREPRIVATE_ENABLEAPPLAUNCHER)
205 204
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // ExtensionFunction: 284 // ExtensionFunction:
286 virtual bool RunImpl() OVERRIDE; 285 virtual bool RunImpl() OVERRIDE;
287 286
288 private: 287 private:
289 void OnIsLauncherCheckCompleted(bool is_enabled); 288 void OnIsLauncherCheckCompleted(bool is_enabled);
290 }; 289 };
291 290
292 } // namespace extensions 291 } // namespace extensions
293 292
294 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _ 293 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _
OLDNEW
« no previous file with comments | « apps/app_launcher.cc ('k') | chrome/browser/extensions/api/webstore_private/webstore_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698