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

Side by Side Diff: chrome/browser/ui/ash/launcher/launcher_app_tab_helper.cc

Issue 10826219: launcher: Fix include paths and header guards. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/views/ash/launcher/launcher_app_tab_helper.h" 5 #include "chrome/browser/ui/ash/launcher/launcher_app_tab_helper.h"
6 6
7 #include "chrome/browser/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/tab_contents/tab_contents.h" 9 #include "chrome/browser/ui/tab_contents/tab_contents.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 12
13 namespace { 13 namespace {
14 14
15 const extensions::Extension* GetExtensionForTab(Profile* profile, 15 const extensions::Extension* GetExtensionForTab(Profile* profile,
(...skipping 22 matching lines...) Expand all
38 } 38 }
39 39
40 std::string LauncherAppTabHelper::GetAppID(TabContents* tab) { 40 std::string LauncherAppTabHelper::GetAppID(TabContents* tab) {
41 const extensions::Extension* extension = GetExtensionForTab(profile_, tab); 41 const extensions::Extension* extension = GetExtensionForTab(profile_, tab);
42 return extension ? extension->id() : std::string(); 42 return extension ? extension->id() : std::string();
43 } 43 }
44 44
45 bool LauncherAppTabHelper::IsValidID(const std::string& id) { 45 bool LauncherAppTabHelper::IsValidID(const std::string& id) {
46 return GetExtensionByID(profile_, id) != NULL; 46 return GetExtensionByID(profile_, id) != NULL;
47 } 47 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_app_tab_helper.h ('k') | chrome/browser/ui/ash/launcher/launcher_context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698