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

Side by Side Diff: chrome/browser/renderer_context_menu/render_view_context_menu.cc

Issue 342003005: Show alert failure for reloading unpacked extensions with bad manifest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed be_noisy, support interaction with multiple failures Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" 5 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 case IDC_RELOAD: 1637 case IDC_RELOAD:
1638 source_web_contents_->GetController().Reload(true); 1638 source_web_contents_->GetController().Reload(true);
1639 break; 1639 break;
1640 1640
1641 case IDC_CONTENT_CONTEXT_RELOAD_PACKAGED_APP: { 1641 case IDC_CONTENT_CONTEXT_RELOAD_PACKAGED_APP: {
1642 const Extension* platform_app = GetExtension(); 1642 const Extension* platform_app = GetExtension();
1643 DCHECK(platform_app); 1643 DCHECK(platform_app);
1644 DCHECK(platform_app->is_platform_app()); 1644 DCHECK(platform_app->is_platform_app());
1645 1645
1646 extensions::ExtensionSystem::Get(profile_)->extension_service()-> 1646 extensions::ExtensionSystem::Get(profile_)->extension_service()->
1647 ReloadExtension(platform_app->id()); 1647 ReloadExtension(platform_app->id(), true);
1648 break; 1648 break;
1649 } 1649 }
1650 1650
1651 case IDC_CONTENT_CONTEXT_RESTART_PACKAGED_APP: { 1651 case IDC_CONTENT_CONTEXT_RESTART_PACKAGED_APP: {
1652 const Extension* platform_app = GetExtension(); 1652 const Extension* platform_app = GetExtension();
1653 DCHECK(platform_app); 1653 DCHECK(platform_app);
1654 DCHECK(platform_app->is_platform_app()); 1654 DCHECK(platform_app->is_platform_app());
1655 1655
1656 apps::AppLoadService::Get(profile_)->RestartApplication( 1656 apps::AppLoadService::Get(profile_)->RestartApplication(
1657 platform_app->id()); 1657 platform_app->id());
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1993 source_web_contents_->GetRenderViewHost()-> 1993 source_web_contents_->GetRenderViewHost()->
1994 ExecuteMediaPlayerActionAtLocation(location, action); 1994 ExecuteMediaPlayerActionAtLocation(location, action);
1995 } 1995 }
1996 1996
1997 void RenderViewContextMenu::PluginActionAt( 1997 void RenderViewContextMenu::PluginActionAt(
1998 const gfx::Point& location, 1998 const gfx::Point& location,
1999 const WebPluginAction& action) { 1999 const WebPluginAction& action) {
2000 source_web_contents_->GetRenderViewHost()-> 2000 source_web_contents_->GetRenderViewHost()->
2001 ExecutePluginActionAtLocation(location, action); 2001 ExecutePluginActionAtLocation(location, action);
2002 } 2002 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698