diff options
| author | scr@chromium.org <scr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-12 23:33:36 +0000 |
|---|---|---|
| committer | scr@chromium.org <scr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-12 23:33:36 +0000 |
| commit | 4e0cb1b6985dc73dc7097266b937fd03d8a12026 (patch) | |
| tree | f4c489c5c26f747510e2b8685cbe0d93f61d72f1 /chrome/browser/ui/cocoa/extensions | |
| parent | db8ff912c0325d5bbff4b989de637ee371d09406 (diff) | |
| download | chromium_src-4e0cb1b6985dc73dc7097266b937fd03d8a12026.zip chromium_src-4e0cb1b6985dc73dc7097266b937fd03d8a12026.tar.gz chromium_src-4e0cb1b6985dc73dc7097266b937fd03d8a12026.tar.bz2 | |
Coverity PASS_BY_VALUE fix.
CID=104112, 104110, 104109
BUG=None
TEST=
R=jeremya@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10443075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141785 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/cocoa/extensions')
| -rw-r--r-- | chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h | 2 | ||||
| -rw-r--r-- | chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h index fe0a2e8..75fd332 100644 --- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h +++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h @@ -33,7 +33,7 @@ class ShellWindowCocoa : public ShellWindow { ShellWindowCocoa(Profile* profile, const extensions::Extension* extension, const GURL& url, - const CreateParams params); + const CreateParams& params); // BaseWindow implementation. virtual bool IsActive() const OVERRIDE; diff --git a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm index 0c25687..784331a 100644 --- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm +++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm @@ -27,7 +27,7 @@ ShellWindowCocoa::ShellWindowCocoa(Profile* profile, const extensions::Extension* extension, const GURL& url, - const ShellWindow::CreateParams params) + const ShellWindow::CreateParams& params) : ShellWindow(profile, extension, url), attention_request_id_(0) { NSRect rect = NSMakeRect(params.bounds.x(), params.bounds.y(), @@ -177,6 +177,6 @@ NSWindow* ShellWindowCocoa::window() const { ShellWindow* ShellWindow::CreateImpl(Profile* profile, const extensions::Extension* extension, const GURL& url, - const ShellWindow::CreateParams params) { + const ShellWindow::CreateParams& params) { return new ShellWindowCocoa(profile, extension, url, params); } |
