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

Side by Side Diff: chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc

Issue 10695070: Implement scriptBadge.requestToAct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix more of Aaron's comments. Created 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/api/extension_action/extension_script_badge_ api.h"
6
7 #include "chrome/browser/extensions/extension_tab_helper.h"
8 #include "chrome/browser/extensions/location_bar_controller.h"
9 #include "content/public/browser/web_contents.h"
10
11 ScriptBadgeGetAttentionFunction::~ScriptBadgeGetAttentionFunction() {}
12
13 bool ScriptBadgeGetAttentionFunction::RunExtensionAction() {
14 tab_helper().location_bar_controller()->GetAttentionFor(extension_id());
Aaron Boodman 2012/07/16 21:46:09 I guess right now it doesn't matter (because get-a
Jeffrey Yasskin 2012/07/16 21:58:28 Yep. I'm planning to do that inside GetAttentionFo
15 return true;
16 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698