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

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

Issue 2849713003: Move all Page Info strings into page_info_strings.grdp (Closed)
Patch Set: Fix moar. Created 3 years, 7 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 #include "chrome/browser/ui/page_info/permission_menu_model.h" 5 #include "chrome/browser/ui/page_info/permission_menu_model.h"
6 6
7 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 7 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
8 #include "chrome/browser/plugins/plugin_utils.h" 8 #include "chrome/browser/plugins/plugin_utils.h"
9 #include "chrome/browser/plugins/plugins_field_trial.h" 9 #include "chrome/browser/plugins/plugins_field_trial.h"
10 #include "chrome/common/chrome_features.h" 10 #include "chrome/common/chrome_features.h"
11 #include "chrome/grit/generated_resources.h" 11 #include "chrome/grit/generated_resources.h"
12 #include "components/strings/grit/components_strings.h"
12 #include "content/public/common/origin_util.h" 13 #include "content/public/common/origin_util.h"
13 #include "ppapi/features/features.h" 14 #include "ppapi/features/features.h"
14 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/base/material_design/material_design_controller.h" 16 #include "ui/base/material_design/material_design_controller.h"
16 17
17 PermissionMenuModel::PermissionMenuModel(Profile* profile, 18 PermissionMenuModel::PermissionMenuModel(Profile* profile,
18 const GURL& url, 19 const GURL& url,
19 const PageInfoUI::PermissionInfo& info, 20 const PageInfoUI::PermissionInfo& info,
20 const ChangeCallback& callback) 21 const ChangeCallback& callback)
21 : ui::SimpleMenuModel(this), 22 : ui::SimpleMenuModel(this),
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 144 }
144 145
145 bool PermissionMenuModel::IsCommandIdEnabled(int command_id) const { 146 bool PermissionMenuModel::IsCommandIdEnabled(int command_id) const {
146 return true; 147 return true;
147 } 148 }
148 149
149 void PermissionMenuModel::ExecuteCommand(int command_id, int event_flags) { 150 void PermissionMenuModel::ExecuteCommand(int command_id, int event_flags) {
150 permission_.setting = static_cast<ContentSetting>(command_id); 151 permission_.setting = static_cast<ContentSetting>(command_id);
151 callback_.Run(permission_); 152 callback_.Run(permission_);
152 } 153 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/page_info/page_info_ui.cc ('k') | chrome/browser/ui/views/certificate_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698