зеркало из https://github.com/mozilla/gecko-dev.git
Bug 850487. Fix --enable-profiling build breakage by not relying on imports inside #ifdefs. r=bnicholson
--HG-- extra : rebase_source : a303b5a1d3b574f10cb640476ef2f4f8f10bd202
This commit is contained in:
Родитель
3042ec3bd3
Коммит
f18d70ce93
|
@ -54,8 +54,9 @@ public class App extends BrowserApp {
|
|||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
#ifdef MOZ_PROFILING
|
||||
if (item.getItemId() == R.id.toggle_profiling) {
|
||||
GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("ToggleProfiling", null));
|
||||
if (item.getItemId() == org.mozilla.gecko.R.id.toggle_profiling) {
|
||||
org.mozilla.gecko.GeckoAppShell.sendEventToGecko(
|
||||
org.mozilla.gecko.GeckoEvent.createBroadcastEvent("ToggleProfiling", null));
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -186,8 +186,9 @@ public class WebApp extends GeckoApp {
|
|||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
#ifdef MOZ_PROFILING
|
||||
if (item.getItemId() == R.id.toggle_profiling) {
|
||||
GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("ToggleProfiling", null));
|
||||
if (item.getItemId() == org.mozilla.gecko.R.id.toggle_profiling) {
|
||||
org.mozilla.gecko.GeckoAppShell.sendEventToGecko(
|
||||
org.mozilla.gecko.GeckoEvent.createBroadcastEvent("ToggleProfiling", null));
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче