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

Side by Side Diff: chrome/browser/ui/website_settings/permission_menu_model.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | 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 #include "chrome/browser/ui/website_settings/permission_menu_model.h" 5 #include "chrome/browser/ui/website_settings/permission_menu_model.h"
6 6
7 #include "grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "ui/base/l10n/l10n_util.h" 8 #include "ui/base/l10n/l10n_util.h"
9 9
10 PermissionMenuModel::PermissionMenuModel( 10 PermissionMenuModel::PermissionMenuModel(
11 const GURL& url, 11 const GURL& url,
12 const WebsiteSettingsUI::PermissionInfo& info, 12 const WebsiteSettingsUI::PermissionInfo& info,
13 const ChangeCallback& callback) 13 const ChangeCallback& callback)
14 : ui::SimpleMenuModel(this), permission_(info), callback_(callback) { 14 : ui::SimpleMenuModel(this), permission_(info), callback_(callback) {
15 DCHECK(!callback_.is_null()); 15 DCHECK(!callback_.is_null());
16 base::string16 label; 16 base::string16 label;
17 switch (permission_.default_setting) { 17 switch (permission_.default_setting) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 int command_id, 77 int command_id,
78 ui::Accelerator* accelerator) { 78 ui::Accelerator* accelerator) {
79 // Accelerators are not supported. 79 // Accelerators are not supported.
80 return false; 80 return false;
81 } 81 }
82 82
83 void PermissionMenuModel::ExecuteCommand(int command_id, int event_flags) { 83 void PermissionMenuModel::ExecuteCommand(int command_id, int event_flags) {
84 permission_.setting = static_cast<ContentSetting>(command_id); 84 permission_.setting = static_cast<ContentSetting>(command_id);
85 callback_.Run(permission_); 85 callback_.Run(permission_);
86 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698