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

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

Issue 508513002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Two more Created 6 years, 3 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_EXTENSION_INSTALL_PROMPT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void set_retained_files(const std::vector<base::FilePath>& retained_files) { 160 void set_retained_files(const std::vector<base::FilePath>& retained_files) {
161 retained_files_ = retained_files; 161 retained_files_ = retained_files;
162 } 162 }
163 163
164 const gfx::Image& icon() const { return icon_; } 164 const gfx::Image& icon() const { return icon_; }
165 void set_icon(const gfx::Image& icon) { icon_ = icon; } 165 void set_icon(const gfx::Image& icon) { icon_ = icon; }
166 166
167 bool has_webstore_data() const { return has_webstore_data_; } 167 bool has_webstore_data() const { return has_webstore_data_; }
168 168
169 const ExtensionInstallPromptExperiment* experiment() const { 169 const ExtensionInstallPromptExperiment* experiment() const {
170 return experiment_; 170 return experiment_.get();
171 } 171 }
172 void set_experiment(ExtensionInstallPromptExperiment* experiment) { 172 void set_experiment(ExtensionInstallPromptExperiment* experiment) {
173 experiment_ = experiment; 173 experiment_ = experiment;
174 } 174 }
175 175
176 private: 176 private:
177 friend class base::RefCountedThreadSafe<Prompt>; 177 friend class base::RefCountedThreadSafe<Prompt>;
178 178
179 virtual ~Prompt(); 179 virtual ~Prompt();
180 180
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 Delegate* delegate_; 418 Delegate* delegate_;
419 419
420 // A pre-filled prompt. 420 // A pre-filled prompt.
421 scoped_refptr<Prompt> prompt_; 421 scoped_refptr<Prompt> prompt_;
422 422
423 // Used to show the confirm dialog. 423 // Used to show the confirm dialog.
424 ShowDialogCallback show_dialog_callback_; 424 ShowDialogCallback show_dialog_callback_;
425 }; 425 };
426 426
427 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 427 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698