#include "chrome/browser/ui/webui/commerce/shopping_list_context_menu_controller.h"
#include "base/metrics/user_metrics.h"
#include "chrome/app/chrome_command_ids.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_node.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/commerce/core/price_tracking_utils.h"
#include "components/commerce/core/shopping_service.h"
#include "components/commerce/core/webui/shopping_service_handler.h"
#include "components/power_bookmarks/core/power_bookmark_utils.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/simple_menu_model.h"
namespace commerce {
namespace {
bool IsBookmarkPriceTrackedFromCache(ShoppingService* service,
bookmarks::BookmarkModel* model,
const bookmarks::BookmarkNode* node) { … }
}
ShoppingListContextMenuController::ShoppingListContextMenuController(
bookmarks::BookmarkModel* bookmark_model,
ShoppingService* shopping_service,
ShoppingServiceHandler* shopping_list_hander)
: … { … }
void ShoppingListContextMenuController::AddPriceTrackingItemForBookmark(
ui::SimpleMenuModel* menu_model,
const bookmarks::BookmarkNode* bookmark_node) { … }
bool ShoppingListContextMenuController::ExecuteCommand(
int command_id,
const bookmarks::BookmarkNode* bookmark_node) { … }
}