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

Unified Diff: chrome/browser/renderer_context_menu/context_menu_content_type.h

Issue 202993002: Fix "unreachable code" warnings (MSVC warning 4702) in chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_context_menu/context_menu_content_type.h
===================================================================
--- chrome/browser/renderer_context_menu/context_menu_content_type.h (revision 256983)
+++ chrome/browser/renderer_context_menu/context_menu_content_type.h (working copy)
@@ -65,22 +65,21 @@
const content::ContextMenuParams& params,
bool supports_custom_items);
+ const content::ContextMenuParams& params() const { return params_; }
+
const extensions::Extension* GetExtension() const;
- content::ContextMenuParams params_;
- content::WebContents* source_web_contents_;
- Profile* profile_;
- bool supports_custom_items_;
- bool has_custom_items_;
-
private:
friend class ContextMenuContentTypeFactory;
friend class ContextMenuContentTypeTest;
- bool HasCustomItems(const std::vector<content::MenuItem>& items) const;
- void Initialize();
bool SupportsGroupInternal(int group);
+ const content::ContextMenuParams params_;
+ content::WebContents* source_web_contents_;
+ Profile* profile_;
+ const bool supports_custom_items_;
+
DISALLOW_COPY_AND_ASSIGN(ContextMenuContentType);
};
« no previous file with comments | « chrome/browser/process_singleton_win.cc ('k') | chrome/browser/renderer_context_menu/context_menu_content_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698