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

Side by Side Diff: chrome/browser/extensions/crx_installer.h

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 | Annotate | Revision Log
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_CRX_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 void set_install_wait_for_idle(bool val) { 189 void set_install_wait_for_idle(bool val) {
190 install_wait_for_idle_ = val; 190 install_wait_for_idle_ = val;
191 } 191 }
192 192
193 bool did_handle_successfully() const { return did_handle_successfully_; } 193 bool did_handle_successfully() const { return did_handle_successfully_; }
194 194
195 Profile* profile() { return installer_.profile(); } 195 Profile* profile() { return installer_.profile(); }
196 196
197 const Extension* extension() { return installer_.extension(); } 197 const Extension* extension() { return installer_.extension().get(); }
198 198
199 private: 199 private:
200 friend class ::ExtensionServiceTest; 200 friend class ::ExtensionServiceTest;
201 friend class ExtensionUpdaterTest; 201 friend class ExtensionUpdaterTest;
202 friend class ExtensionCrxInstallerTest; 202 friend class ExtensionCrxInstallerTest;
203 203
204 CrxInstaller(base::WeakPtr<ExtensionService> service_weak, 204 CrxInstaller(base::WeakPtr<ExtensionService> service_weak,
205 ExtensionInstallPrompt* client, 205 ExtensionInstallPrompt* client,
206 const WebstoreInstaller::Approval* approval); 206 const WebstoreInstaller::Approval* approval);
207 virtual ~CrxInstaller(); 207 virtual ~CrxInstaller();
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 394
395 // Gives access to common methods and data of an extension installer. 395 // Gives access to common methods and data of an extension installer.
396 ExtensionInstaller installer_; 396 ExtensionInstaller installer_;
397 397
398 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 398 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
399 }; 399 };
400 400
401 } // namespace extensions 401 } // namespace extensions
402 402
403 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 403 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/convert_web_app_unittest.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698